POST
/
v1
/
user-party
curl --request POST \
  --url https://live.copilot.fabric.inc/data-customer/v1/user-party \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "partyId": "6123f1c6cbab9f51ccc420d3",
  "userId": "TEST_USER"
}'
{
  "_id": "612d20699c52ee000824f5e7",
  "partyId": "612d205f3535d7000890492f",
  "userId": "TEST_USER1",
  "createdAt": "2021-08-30T18:16:09.623Z",
  "updatedAt": "2021-08-30T18:16:09.623Z"
}

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 link a user to an existing party.
partyId
string
required

Fabric internal id for party.

userId
string
required

Fabric internal id for user.

Response

200
application/json
OK
_id
string
required

Fabric internal id of the record.

partyId
string
required

Fabric internal id for party.

userId
string
required

Fabric internal id for user.

createdAt
string
required
updatedAt
string
required