PUT
/
products
/
sku
curl --request PUT \
  --url https://api.fabric.inc/v3/products/sku \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": [
    {
      "oldProductSku": "AAWE1234CCVFDDERW21",
      "newProductSku": "BQWE1234CCVFDDERW21"
    },
    {
      "oldProductSku": "AAWE1234CCVFDDERW20",
      "newProductSku": "BQWE1234CCVFDDERW20"
    }
  ]
}'
{
  "data": [
    {
      "success": [
        {
          "id": "AASSBCC12334FCD123346",
          "newSku": "BQWE1234CCVFDDERW21",
          "oldSku": "AAWE1234CCVFDDERW21"
        }
      ],
      "errors": [
        {
          "id": "AASSBCC12334FCD123345",
          "newSku": "BQWE1234CCVFDDERW20",
          "oldSku": "AAWE1234CCVFDDERW20",
          "message": [
            "Attribute ID AASSBB123456IIII 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

statuses
string
default:DRAFT,LIVE

Comma-separated statuses indicating the preferred order of the product versions considered for this operation (endpoint action). For example, <br />1. When the status is DRAFT, this operations will only apply to the Draft version of product, if it exists <br />2. When the status is LIVE, this operation will only apply to the Live version of the product, if it exists <br />3 When the status is LIVE,DRAFT, this operation will prioritize Live version first, if it exists. Otherwise, the Draft version is considered. <br />4 When the status is DRAFT,LIVE this operation will prioritize the Draft version first, if it exists. Otherwise, the Live version is considered.

Example:

"DRAFT"

Body

application/json

Request to update products by SKUs

Response

200
application/json

OK

Bulk operation response to change the SKUs