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.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
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 "UPDATE"
Attribute name
"weight"
Supported attribute types for the attribute
TEXT, BOOLEAN, SERIAL, DECIMAL, INTEGER, DATETIME, OPTIONS "INTEGER"
A 24-character system-generated attribute ID
"61ba11691a29d52cb2842541"
Accurate description of the attribute and what it represents
"Item weight, in KG"
Conditionally required for TEXT attribute type
SMALL_TEXT, TEXT_AREA, HTML "HTML"
Conditionally required to indicate the starting value of SERIAL attribute type. When enabled, the subsequent attribute values increment by 1.
1000
Conditionally required to indicate the selectable values for OPTIONS attribute type
TEXT, BOOLEAN, DECIMAL, INTEGER, DATETIME "DATETIME"
Attribute format. Currently used only for DATETIME attribute type.
"YYYY-MM-DD"
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.
"${item.weightValue} ${item.weightUnit}"
Response
OK
