Skip to main content
PUT
/
api
/
v1
/
promotions
/
{id}
/
listings
/
unassign
Unassign listings from promotion
curl --request PUT \
  --url https://api.example.com/api/v1/promotions/{id}/listings/unassign \
  --header 'Content-Type: application/json' \
  --header 'x-calry-api-key: <api-key>' \
  --data '
{
  "listingIDs": [
    "123e4567-e89b-12d3-a456-426614174000",
    "223e4567-e89b-12d3-a456-426614174000"
  ]
}
'
"Unassigned 5 listings from promotion 123e4567-e89b-12d3-a456-426614174000"

Authorizations

x-calry-api-key
string
header
required

Headers

x-calry-tenant-id
string

Optional tenant ID to specify which tenant to operate as. Controls access to promotions and their associated listings. If not provided, the default tenant will be used.

Path Parameters

id
string
required

ID of the promotion to unassign listings from

Example:

"123e4567-e89b-12d3-a456-426614174000"

Body

application/json
listingIDs
string[]
required

Array of listing IDs to assign to the promotion

Example:
[
"123e4567-e89b-12d3-a456-426614174000",
"223e4567-e89b-12d3-a456-426614174000"
]

Response

Listings unassigned from promotion successfully

The response is of type string.

Example:

"Unassigned 5 listings from promotion 123e4567-e89b-12d3-a456-426614174000"