PUT
/
products
curl --request PUT \
  --url https://api.fabric.inc/v3/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "products": [
    {
      "sku": "XP-123345",
      "categoryId": "QWE1234CCVFDDERW21",
      "isActive": true,
      "type": "ITEM",
      "attributes": [
        {
          "id": "6d7329dfd5288b0011332311",
          "value": "blue"
        }
      ],
      "parentProduct": {
        "id": "AASSBCC12334FCD12334V"
      },
      "bundleProducts": [
        {
          "sku": "XP-123345",
          "quantity": 2
        }
      ],
      "id": "AASSBCC12334FCD12334V",
      "variants": [
        {
          "id": "AASSBCC12334FCD12334V"
        }
      ],
      "localizedProperties": {
        "en-US": {
          "attributes": [
            {
              "id": "W123333RRTT555y1",
              "value": "blue"
            }
          ]
        },
        "en-IN": {
          "attributes": [
            {
              "id": "W123333RRTT555AA",
              "value": "blue"
            }
          ]
        }
      }
    }
  ]
}'
{
  "data": [
    {
      "success": [
        {
          "id": "AASSBCC12334FCD12334V",
          "sku": "XP-123345"
        }
      ],
      "errors": [
        {
          "id": "AASSBCC12334FCD23456A",
          "sku": "XP-23456",
          "message": [
            "Attribute ID 6d7329dfd5288b0011332311 can not be null"
          ]
        }
      ]
    }
  ]
}

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"

Query Parameters

locales
string
deprecated

Comma-separated locale codes of product. The service throws a 400 error if the locale isn't supported. Standard locales can be found at https://www.rfc-editor.org/rfc/rfc5646. <br /> Note: The recommended way to get the locale is by invoking multi-channel service.

Example:

"fr-CA%2Cen-US"

status
enum<string>
default:LIVE

Determines the version of the product applicable for this operation (endpoint action). If the status is DRAFT, only the Draft version of the product, if it exists, is considered for the operation.

Available options:
DRAFT,
LIVE
Example:

"LIVE"

Body

application/json

Response

200
application/json

OK

Add product response