PATCH
/
api-list
/
list
/
{listId}
/
items
curl --request PATCH \
  --url https://prod01-apigw.{customer_name}.fabric.zone/api-list/list/{listId}/items \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '[
  {
    "itemId": "1234"
  },
  {
    "sku": "SKU_1"
  }
]'
{
  "message": "Items successfully added/deleted to list",
  "items": [
    {
      "_id": "5fee9d59f2f08a1b3cbdea08",
      "createdAt": "2020-12-31T02:09:53.914Z",
      "updatedAt": "2020-12-31T02:09:53.914Z",
      "listId": "6155e5f6e311670009aeb478",
      "itemId": "1234",
      "sku": "SKU_1"
    }
  ]
}

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.

x-api-key
string

Path Parameters

listId
string
required

Body

application/json · object[]
sku
string
required
itemId
string

Response

200
application/json
Items added sucessfully
message
string
items
object[]