Creates a metaobject definition. type, name and a non-empty fieldDefinitions array are required. Each field definition needs key, name and type.
Requires the write_metaobject_definitions scope.
access.storefront is NONE or PUBLIC_READ. access.admin is MERCHANT_READ or MERCHANT_READ_WRITE and is allowed only when type starts with $app:. On a normal type, Shopify answers 400 Admin access can only be specified on metaobject definitions that have an app-reserved type. The response can still show access.admin as PUBLIC_READ_WRITE: that is Shopify's value for a merchant-owned definition.
displayNameKey must be the key of one of the fields. An invalid body answers 422 with ecartapiError: true. A type that already exists answers 400 with Shopify's message.
Deleting this definition later also deletes every entry of the type.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||