Skip to content

Update metaobject

PATCH/admin/v1/stores/{store_id}/metaobjects/{metaobject_id}
  • content:write

Change an entry's handle, status or fields.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • metaobject_idstringrequired

    The entry's ID, like mobj_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • handlestring · or null
  • statusenum · or null

    Whether storefronts can see an entry (when its type allows storefront access).

    • draft
    • active
  • fieldsobject
  • translationsobject

    Named languages and fields are replaced; a blank value removes one.

Returns

200 Updated.

Errors

  • 404not_foundNo such entry.
  • 409The handle is taken.
  • 422validation_failedA value does not fit its field.