GET
/
v1
/
accounts
/
{accountId}
/
children
curl --request GET \
  --url https://live.copilot.fabric.inc/data-customer/v1/accounts/{accountId}/children \
  --header 'Authorization: Bearer <token>' \
  --header 'x-site-context: <x-site-context>'
[
  {
    "_id": "612d66636c6ce700086e8880",
    "isDeleted": false,
    "parentAccountId": "612d66416c6ce700086e887d",
    "type": "TEXT",
    "name": "Color",
    "accountNumber": "ABC-123",
    "additionalAttributes": {},
    "createdAt": "2021-08-30T23:14:43.111Z",
    "updatedAt": "2021-08-30T23:14:43.111Z",
    "__v": 0
  }
]

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.

Path Parameters

accountId
string
required

Fabric internal id of the record

Response

200
application/json
OK
_id
string
required

Fabric internal id of the record.

isDeleted
boolean
required
parentAccountId
string
required
type
string
required
name
string
required
accountNumber
string
required
createdAt
string
required
updatedAt
string
required
__v
integer
required
additionalAttributes
object

Contains all additional attributes not captured in the schema.