POST
/
v1
/
internalParties-party
/
create
curl --request POST \
  --url https://live.copilot.fabric.inc/data-customer/v1/internalParties-party/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "partyId": "612d205f3535d7000890492f",
  "internalPartyId": "612d205f3535d7000890492g"
}'
{
  "_id": "<string>",
  "partyId": "612d205f3535d7000890492h",
  "internalPartyId": "612d205f3535d7000890492h",
  "isDeleted": false,
  "createdAt": "2021-08-30T23:20:42.822Z",
  "updatedAt": "2021-08-30T23:20:42.822Z"
}

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.

Example:

"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"

Body

application/json
A sample request to create an association or link between an internal party and existing party.
partyId
string
required

partyId will be the internal Id of the record

Example:

"612d205f3535d7000890492f"

internalPartyId
string
required

internalPartyId will be the internal Id of the record

Example:

"612d205f3535d7000890492g"

Response

200
application/json
OK
_id
string

Fabric internal id of the record.

partyId
string

partyId will be the internal Id of the record

Example:

"612d205f3535d7000890492h"

internalPartyId
string

internalPartyId will be the internal Id of the record

Example:

"612d205f3535d7000890492h"

isDeleted
boolean

flag that indicates if the record is deleted

Example:

false

createdAt
string

date of creation of the record

Example:

"2021-08-30T23:20:42.822Z"

updatedAt
string

laste date of update of the record

Example:

"2021-08-30T23:20:42.822Z"