Create Field
Adds a new custom field to the specified variant. Options for select/radio fields are managed separately.
Requires the stores.products.update permission.
Authorizations
Your API key goes here
Path Parameters
The ID of the store containing the product.
The ID of the product.
The ID of the variant to add the field to.
Body
The details of the custom field to create.
Form for creating a new custom field on a product. Options (for select/radio types) are managed via a separate API.
The display label for this custom field.
1 - 128A machine‐friendly identifier (letters, numbers, underscores only).
1 - 64^[A-Za-z0-9_]+$The type of the field. Must be one of the supported types: text, textarea, select, checkbox, radio, number.
1^(?:text|textarea|select|checkbox|radio|number)$Whether filling out this field is mandatory.
Placeholder text shown when the field is empty (text/textarea only).
256Optional help text displayed under the field.
512Response
The object was successfully created.
Represents a default generic response for API endpoints.
Indicates whether the operation or response was successful.
A descriptive message providing additional context or information about the response.
The error code (if there was an error) to use when referencing the error
Represents a user‐defined custom field for a product, allowing additional input or choice.