PATCH
/
products
/
sku
/
{sku}
/
attributes
curl --request PATCH \
  --url https://api.fabric.inc/v3/products/sku/{sku}/attributes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": [
    {
      "op": "add",
      "path": "/attributes/-",
      "value": {
        "id": "6454e9e045276428de74c554",
        "value": "blue"
      }
    }
  ]
}'

Authorizations

Authorization
string
headerrequired

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.

x-fabric-request-id
string

Unique request ID

Path Parameters

sku
string
required

Product SKU

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.

Body

application/json

Request for partial update

data
object[]
required

Response

200 - application/json

Details of Item by SKU

id
string

Product ID

sku
string

Unique product ID that maps to fabric's standard attribute called SKU. <br /> <b>Note:</b> sku shouldn't include ; or =

type
enum<string>

Supported product types

Available options:
ITEM,
VARIANT,
BUNDLE
isActive
boolean

true: Product is active <br /> false: Product is inactive

hasDraft
boolean

true: Product has a Draft version <br /> false: Product doesn't have a Draft version

hasLive
boolean

true: Product has a Live version <br /> false: Product doesn't have a Live version

status
enum<string>

Represents the current status of product. This value takes precedence over isActive if both are sent in the request.

Available options:
DRAFT,
LIVE
attributes
object[]

Attributes assigned to product

localizedProperties
object

Localized attribute names

parentProduct
object

Parent item SKU of the Variant

variants
object[]

Variants with ID and SKU

bundleProducts
object[]

Bundles with ID and SKU

categoryId
string

24-character system-generated category ID of product

createdAt
string

Time of product creation (UTC)

updatedAt
string

Time of last update to product (UTC)