Skip to main content
POST
/
v1
/
party-trait
/
partyTrait
Create Party trait
curl --request POST \
  --url https://live.copilot.fabric.inc/data-customer/v1/party-trait/partyTrait \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "partyId": "612d205f3535d7000890492f",
  "traitId": "612d205f3535d7000890492g",
  "traitScore": 0.5
}'
{
  "_id": "612d205f3535d7000890492f",
  "partyId": "612d205f3535d7000890492f",
  "traitId": "612d205f3535d7000890492g",
  "traitScore": 0.5
}

Authorizations

Authorization
string
header
required

Headers

x-site-context
string
required
Example:

Body

application/json
partyId
string
required
Example:
traitId
string
required
Example:
traitScore
number
Example:

Response

_id
string
Example:
partyId
string
Example:
traitId
string
Example:
traitScore
number
Example: