contactAssignments
query · in the family Contact assignment
What it does
The contact assignment list — each entry is a contact’s assignment to a record — who is the buyer on this vendor, the manager at this store.
The ContactAssignments your organization group holds today. Doomed records leave the listing but stay readable by id.
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Reading your records — Looking up and listing the records of your organization.
Roles that may call it:
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- An API key whose scope allows
api:contactAssignments
What happens
Reads only — changes nothing.
Returns
ContactAssignment [ContactAssignment!]! — A contact assignment — ONE role-tagged attachment of a Contact to a host construct (org group / organization / logical facility / vendor / corporate customer). Parent = the host (the CollectionMember stance — hostId rides the header parentId). The (contact, host, role) triple is unique (a live duplicate is CONFLICT/IDENTITY_TAKEN naming the holder); remove = doom (TWO_STATE — history preserved); re-assigning mints a NEW record via marker takeover. Role to host applicability is registry data. At most 48 live assignments per host.
Example request
query ExampleContactAssignments {
contactAssignments {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
contactId
hostType
role
}
}Example response
{
"data": {
"contactAssignments": [
{
"id": "01900000-0000-7000-8000-333a291a0000",
"sysId": "CA-EXMP-0000-000F",
"type": "ContactAssignment",
"caption": "Blue jeans",
"status": "active",
"parentId": "01900000-0000-7000-8000-1971e30a0000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"contactId": "01900000-0000-7000-8000-73ac94c30000",
"hostType": "organization_group",
"role": "<role>"
}
]
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)