PUT
/
categories
curl --request PUT \
  --url https://api.fabric.inc/v3/categories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "categories": [
    {
      "id": "557f1f77bcf86cd799439015",
      "name": "Color",
      "localizedProperties": {
        "en-US": {
          "name": "Color"
        },
        "en-IN": {
          "name": "Colour"
        }
      },
      "isLocalizable": true,
      "categoryAttributes": [
        {
          "id": "55184766610c0e32a86d8759",
          "value": "blue"
        }
      ],
      "productAttributes": [
        {
          "id": "55184766610c0e32a86d8759",
          "isMandatory": true
        }
      ]
    }
  ]
}'
{
  "data": [
    {
      "success": [
        {
          "id": "53184766610c0e32a86d875",
          "name": "Color"
        }
      ],
      "errors": [
        {
          "id": "53184766610c0e32a86d875",
          "name": "Color",
          "message": [
            "Error while updating attribute: 55184766610c0e32a86d8759"
          ]
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Headers

x-fabric-tenant-id
string

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.

Example:

"517fa9dfd42d8b00g1o3k312"

x-fabric-request-id
string

Unique request ID

Example:

"263e731c-45c8-11ed-b878-0242ac120002"

Body

application/json

Category details to be updated

Bulk Category creation

Response

200
application/json

OK

Bulk create response