Update Multiple Items

PUT {{protocol}}://{{instance_zuid}}.{{instances_api_url}}/{{instances_api_version}}/content/models/{{content_model_zuid}}/items/batch

Updates multiple items at once. Required payload keys are pathPart, ZUID and masterZUID.

namedescription
pathPart[string] Required.
ZUID[string] Required.The item ZUID to be updated.
masterZUID[string] Required. The master ZUID of the item.

Some keys, but not limited to, that you can update are the meta keys and field values that you want to update.

Request Body

{"0"=>{"web"=>{"pathPart"=>"my-other-label"}, "meta"=>{"ZUID"=>"7-9cd0bae9c3-1234", "masterZUID"=>"7-9cd0bae9c3-1234"}, "data"=>{"fieldLabel"=>"myupdatedlabel"}}, "1"=>{"web"=>{"pathPart"=>"my-label"}, "meta"=>{"ZUID"=>"7-f4a3b2e9c3-5678", "masterZUID"=>"7-f4a3b2e9c3-5678"}, "data"=>{"fieldLabel"=>"myotherupdatedlabel"}}}

RESPONSES

status: OK

{"_meta":{"timestamp":"2023-02-15T21:12:27.243729264Z","totalResults":2,"start":0,"offset":0,"limit":2},"data":["7-9cd0bae9c3-1234","7-f4a3b2e9c3-5678"]}