In Product Catalog, both products (Items, Variants, and Bundles) and categories have attributes. For products, they may be technical specifications like size, weight, etc., design specifications like color, material, etc. For Categories, they may be basic specifications such as name, description, ID, etc. This endpoint creates attributes that can be assigned to a target - Product or Category.
S2S access token (JWT) from fabric Identity service (during Login)
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
"517fa9dfd42d8b00g1o3k312"
Unique request ID
"263e731c-45c8-11ed-b878-0242ac120002"
Request body to create attribute
Attribute type
TEXT, NUMBER, DATETIME, BOOLEAN, OPTIONS, SERIAL "TEXT"
Single string for EQUALS operation; comma-separated string for an IN operation
PRODUCT, CATEGORY "PRODUCT"
Attribute name that appears when it isn't localized. Refer to localizedProperties to get the localized name.
"color"
Attribute description
"Product color"
Names of localized attributes
{
"en-US": { "name": "color" },
"en-IN": { "name": "colour" }
}
true: Attribute name is translated into different languages or localized for different regions
false: Attribute name isn't localized Note: Refer to localizedProperties to get relevant attributes based on locale.
true
Validation details
OK
Attribute ID
"CAZZX1234567DDDDD"
Non-localized attribute name. Refer to localizedProperties to get the localized name.
"color"
Brief description of attribute
"Product color"
Attribute type
TEXT, NUMBER, DATETIME, BOOLEAN, OPTIONS, SERIAL "TEXT"
Single string for EQUALS operation; comma-separated string for an IN operation
PRODUCT, CATEGORY "PRODUCT"
Names of localized attributes
{
"en-US": { "name": "color" },
"en-IN": { "name": "colour" }
}
true: Attribute name is translated into different languages or localized for different regions
false: Attribute name isn't localized Note: Refer to localizedProperties to get relevant attributes based on locale.
true
Validation details
Email of the user who last updated the attribute
Time of attribute creation (UTC)
"2021-04-20T10:24:36.162Z"
Time of last update to attribute (UTC)
"2021-04-20T10:24:36.162Z"