Update JetEngine Field Values


Writes values into a post's JetEngine meta fields, stored as post meta the way JetEngine keeps them (sites using JetEngine's custom meta storage receive them through the same WordPress meta functions). Send only the fields to change, keyed by field name; null or an empty string clears a field (refused for a required field). Every value is checked against its field before anything is written, and the whole call is refused if one is wrong: text within the field's length limit, numbers within its minimum, maximum and step, choices against its options (send the option value; an exact option label is also accepted; a list for a multiple select), switchers as true or false, dates as YYYY-MM-DD, times as HH:MM, date-times as YYYY-MM-DD HH:MM, colours as #rrggbb. Media, gallery, checkbox, related-posts, repeater and other field types are refused: their storage depends on settings that cannot be checked safely here. Fields not attached to the post's type are refused. Returns each field's previous and current value, so it is reversible by sending the previous values back. Sends no email. Get field names from mosmcp/jetengine-list-meta-boxes.

Also known as: set custom field, update meta field, edit JetEngine fields, save post meta.

Property Value
Ability slug mosmcp/jetengine-update-field-values
Wire tool name mosmcp__jetengine-update-field-values
Category JetEngine (mosmcp-jetengine)
Plan Pro

 

Required access

Requirement Value
Capability edit_post (checked against the specific post)
Minimum default role Contributor
Annotations readOnly: false · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
post_id integer (min 1) Yes — The ID of the post, page or custom post type item, as returned by mosmcp/post-find, mosmcp/page-find or mosmcp/cpt-list.
values object Yes — Field name => new value, for example {"price": 12.5, "colour": "red"}. A list for a multiple select. null or "" clears the field.

 

Output schema

Field Type Required Description
post_id integer Yes
changed boolean Yes Whether any stored value changed.
fields object[] Yes
fields[].field string Yes
fields[].type string
fields[].previous string | number | boolean | array | object | null The value stored before this call, or null when there was none. Send it back to undo.
fields[].current string | number | boolean | array | object | null The value stored now, read back from the post.
fields[].changed boolean Yes
notes string[]

 


<< Previous Next >>
List JetEngine Post Types

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.