Update Metaobject (Shopify)

Updates the handle, status or fields of one entry. Send at least one of those. Fields you do not send keep their current values.

Requires the write_metaobjects scope. Numeric id. A GID in this path answers 422 with ecartapiError: true. Shopify is not called.

The example sends only title. body and product stay as they were.

status answers 400 Capability is not enabled: publishable when the definition is not publishable. An empty metaobject object answers 422 with ecartapiError: true. An unknown id answers 404 Resource metaobject not found.

See Shopify metafields and metaobjects.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Numeric id. A GID in this path answers 422 with ecartapiError: true. Shopify is not called.

Body Params

Changes to one entry. Send at least one of handle, status or fields.

metaobject
object
required

At least one of handle, status or fields.

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json