POST
/
api-category
/
v1
/
category
/
attribute
/
bulk

Authorizations

Authorization
string
headerrequired

S2S access token (JWT) from fabric Identity service (during Login)

Headers

x-site-context
string
required

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

application/json · object[]
action
enum<string>
required

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.

Available options:
CREATE,
UPDATE,
DELETE
id
string

A 24-character system-generated attribute ID

name
string
required

Attribute name

description
string

Accurate description of the attribute and what it represents

type
enum<string>
required

Supported attribute types for the attribute

Available options:
TEXT,
BOOLEAN,
SERIAL,
DECIMAL,
INTEGER,
DATETIME,
OPTIONS
textSubType
enum<string>

Conditionally required for TEXT attribute type

Available options:
SMALL_TEXT,
TEXT_AREA,
HTML
serialStart
number

Conditionally required to indicate the starting value of SERIAL attribute type. When enabled, the subsequent attribute values increment by 1.

optionsType
enum<string>

Conditionally required to indicate the selectable values for OPTIONS attribute type

Available options:
TEXT,
BOOLEAN,
DECIMAL,
INTEGER,
DATETIME
format
string

Attribute format. Currently used only for DATETIME attribute type.

formula
string

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.

validation
object

Response

200 - application/json
attributes
object