Tell us what you are trying to do?
I have a custom type called 'transactions' which has two custom fields. I can add transactions via the rest API but I don't know how to set the values for the custom fields.
Is there any documentation that you are following?
Toolset includes a very limited integration with the REST API, which allows you to include formatted custom field values in REST responses in a special property "toolset-meta".
(There are also lots of tutorials online if you search.)
Just bear in mind that Toolset custom fields are stored in wp_postmeta with a 'wpcf-' prefix, so if you have a 'priority' custom field its slug would be 'wpcf-priority'. Also, most custom fields store a simple raw value (again, if priority was a select field with option and label combinations of "One":1, "Two":2, "Three": 3 etc., and a post had priority Two selected, then the value stored (or that would need storing) in wp_postmeta for wpcf-priority would be '2'.
The topic ‘[Closed] Update toolset meta data via the rest api’ is closed to new replies.