Create metaobject
POST
/ admin/ v1/ stores/ {store_id}/ metaobjects- content:write
- Idempotency-Key supported
Add an entry. Every value is checked against its field.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.
Headers
Idempotency-KeystringSend the same key to retry safely: the first answer is replayed for 24 hours.
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
typestringrequiredhandlestring · or nullDerived from the display field when left out.
statusenumDefault
draft.- draft
- active
fieldsobjectValues by field key.
translationsobjectText fields in the store's other languages:
{"ar": {"title": "…"}}.
Returns
201 Created.
Errors
- 404
not_foundNo such content type. - 409The handle is taken (
handle_taken). - 422
validation_failedA value does not fit its field (fields.{key}).