Update record
update_recordUpdate an existing record by id: merge field values, transition lifecycle status, or publish/unpublish it. Use for targeted edits that leave unchanged fields intact.
Instructions
Update an existing record by id (from list_records). Pass data to merge field values (fields you don't pass are unchanged), status to transition the record's lifecycle state, and/or published to take it on or off the site. At least one of data/status/published is required. Each record carries url: its live storefront link, built by the server from the model's urlPattern and the site's public site URL. Use it whenever you link to a record and never build a storefront URL yourself (not from a slug, not from the site address). When url is null or missing, say why instead of guessing: the model has no urlPattern (set it with update_model), the model is not delivered (deliveryAccess none, or it is the login model), the site has no public site URL, or the record - or one it links to - is unpublished.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"recordId": "<recordId>"
},
"name": "update_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The field values to change, keyed by the model's field keys. Merged into the record's current data - fields you don't pass are unchanged. A translatable field (localized: true on the model) takes a language map, e.g. { title: { pl: 'Łożysko' } }; the languages you don't pass are kept, so you can add one translation without resending the others. | |
| status | No | New status value to transition the record to (validated against the model's statusField transitions). | |
| recordId | Yes | The record's id (from list_records) | |
| published | No | Publish (true) or unpublish (false) the record. An unpublished record stays off every public read - lists, relations, prices, cart - until published again. Separate from status, which is only a workflow label. |