Create, update and delete category attributes
Creates, updates and deletes category attributes. The primary purpose is to create and edit the attributes to be assigned to categories.
Note: They are generic category attributes and not specific to a category.
Authorizations
S2S access token (JWT) from fabric Identity service (during Login)
Headers
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
Body
Action type. <br /> Note: <br /> 1) Attribute ID is required only for UPDATE
and DELETE
actions (not for CREATE). <br /> 2) CREATE
action replaces any existing category attribute with the same name.
CREATE
, UPDATE
, DELETE
A 24-character system-generated attribute ID
Attribute name
Accurate description of the attribute and what it represents
Supported attribute types for the attribute
TEXT
, BOOLEAN
, SERIAL
, DECIMAL
, INTEGER
, DATETIME
, OPTIONS
Conditionally required for TEXT
attribute type
SMALL_TEXT
, TEXT_AREA
, HTML
Conditionally required to indicate the starting value of SERIAL
attribute type. When enabled, the subsequent attribute values increment by 1.
Conditionally required to indicate the selectable values for OPTIONS
attribute type
TEXT
, BOOLEAN
, DECIMAL
, INTEGER
, DATETIME
Attribute format. Currently used only for DATETIME
attribute type.
JavaScript expression to dynamically compute the attribute value. The data type returned by this expression must match the attribute's data type. <br /> Note: When this is provided, validation
is ignored.
Response
Was this page helpful?