POST
/
v1
/
party-trait
/
bulkDelete
curl --request POST \
  --url https://live.copilot.fabric.inc/data-customer/v1/party-trait/bulkDelete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "partyIds": [
    "612d205f3535d7000890492f"
  ],
  "traitIds": [
    "612d205f3535d7000890492g"
  ]
}'
{
  "deletedCount": 2
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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
A sample request to bulk delete party traits.
partyIds
string[]
required

array of partyIds, partyId will be the internal Id of the record

traitIds
string[]
required

array of traitIds, traitId will be the internal Id of the record

Response

200
application/json
OK
deletedCount
number

number of deleted data