Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to MetafieldDefinitionCreateUserErrorCode

MetafieldDefinitionCreateUserErrorCode

enum

Possible error codes that can be returned by MetafieldDefinitionCreateUserError.

Anchor to ADMIN_ACCESS_INPUT_NOT_ALLOWEDADMIN_ACCESS_INPUT_NOT_ALLOWED
•

Admin access can only be specified for app-owned metafield definitions.

Anchor to CAPABILITY_REQUIRED_BUT_DISABLEDCAPABILITY_REQUIRED_BUT_DISABLED
•

A capability is required for the definition type but is disabled.

•

A duplicate option.

Anchor to GRANT_LIMIT_EXCEEDEDGRANT_LIMIT_EXCEEDED
•

The maximum limit of grants per definition type has been exceeded.

•

The input value isn't included in the list.

•

The input value is invalid.

•

The metafield definition capability is invalid.

•

A field contains an invalid character.

•

The metafield definition constraints are invalid.

Anchor to INVALID_INPUT_COMBINATIONINVALID_INPUT_COMBINATION
•

The input combination is invalid.

•

An invalid option.

•

The maximum limit of definitions per owner type has exceeded.

Anchor to OWNER_TYPE_LIMIT_EXCEEDED_FOR_AUTOMATED_COLLECTIONSOWNER_TYPE_LIMIT_EXCEEDED_FOR_AUTOMATED_COLLECTIONS
•

You have reached the maximum allowed definitions for automated collections.

Anchor to PINNED_LIMIT_REACHEDPINNED_LIMIT_REACHED
•

The pinned limit has been reached for the owner type.

•

The input value needs to be blank.

Anchor to RESERVED_NAMESPACE_KEYRESERVED_NAMESPACE_KEY
•

This namespace and key combination is reserved for standard definitions.

Anchor to RESOURCE_TYPE_LIMIT_EXCEEDEDRESOURCE_TYPE_LIMIT_EXCEEDED
•

The definition limit per owner type has exceeded.

•

The input value is already taken.

•

The input value is too long.

•

The input value is too short.

Anchor to TYPE_NOT_ALLOWED_FOR_CONDITIONSTYPE_NOT_ALLOWED_FOR_CONDITIONS
•

The definition type is not eligible to be used as collection condition.

Anchor to UNSTRUCTURED_ALREADY_EXISTSUNSTRUCTURED_ALREADY_EXISTS
•

This namespace and key combination is already in use for a set of your metafields.

•

The metafield definition does not support pinning.


Was this section helpful?