contactAssignment
query · in the family Contact assignment
What it does
Look up one record — a contact’s assignment to a record — who is the buyer on this vendor, the manager at this store.
One ContactAssignment by id. The record must belong to your organization group; an id from another group reads as not found.
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:contactAssignment
What happens
Reads only — changes nothing.
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
id | ID ID! | yes | The id of the record. |
Returns
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 ExampleContactAssignment($id: ID!) {
contactAssignment(id: $id) {
id
sysId
type
caption
status
parentId
rootId
createdAt
updatedAt
revisionNum
revision
contactId
hostType
role
}
}Variables:
{
"id": "01900000-0000-7000-8000-333a291a0000"
}Example response
{
"data": {
"contactAssignment": {
"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)NOT_FOUND/*— That record could not be found. Retry: no. (NOT_FOUND)