POST
/
api-product
/
v1
/
product
/
bulk
/
update
curl --request POST \
  --url https://live.copilot.fabric.inc/api-product/v1/product/bulk/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "skus": [
    "sku12",
    "sku13"
  ],
  "type": "ITEM",
  "action": "UPDATE",
  "parentSku": "sku234",
  "attributeValues": [
    {
      "name": "Mobile",
      "value": "AMD X570 mobo"
    }
  ],
  "inheritedAttributes": [
    {
      "name": "color",
      "action": "SET"
    }
  ]
}'
{
  "success": [
    {
      "sku": "sku1",
      "itemId": "611686da50fb7e0c5df78c2e",
      "itemIdSeq": 12,
      "message": "SKU created successfully.",
      "errorAttributes": [
        {
          "name": "Inactive",
          "message": "Attribute value is invalid."
        }
      ],
      "errorBundles": [
        {
          "name": "<string>",
          "message": "<string>"
        }
      ]
    }
  ],
  "failed": [
    {
      "sku": "sku1",
      "message": "Failed because of validation"
    }
  ],
  "itemIds": [
    "611686da50fb7e0c5df78c2e",
    "711686da50fb7e0c5df78c22"
  ]
}

Authorizations

Authorization
string
header
required

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

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Body

application/json
skus
string[]

Stock Keeping Units (SKUs)

type
string

Item type - Bundle or Item

action
string

Action type

parentSku
string | null

“Stock Keeping Unit (SKU) of the parent item. <br /> Set the value as detach or null to disassociate the item from parent item.”

attributeValues
object[]
inheritedAttributes
object[]

Category item attributes to inherit from parent item to children items

Response

200
application/json
OK
success
object[]
failed
object[]
itemIds
string[]

Item IDs