Skip to main content

Contact Roles

Entity›Datastore›Datastore.Role

Contact roles define the role a contact plays within a relationship (e.g., primary contact, billing contact, technical contact).

Use the Datastore_Role endpoint to query contact roles.

Endpoints​

List Contact Roles​

GET/v1/odata/Datastore_Role

Single Contact Role​

GET/v1/odata/Datastore_Role({id})

Fields​

Datastore Fields (inherited)​

FieldTypeDescription
NameStringDisplay name
CodeStringUnique code identifier
LocalizedNameStringLocalized display name
IsDefaultBooleanWhether this is the default value

Relationships​

RelationshipTarget EntityCardinalityDescription
ContactRelationship_Person_Contact1:NContact

Expanding Relationships​

GET/v1/odata/Datastore_Role({id})?$expand=Contact
GET/v1/odata/Datastore_Role({id})/Contact

Filtering Examples​

GET/v1/odata/Datastore_Role?$filter=Name eq '{Name}'&$top={top}
GET/v1/odata/Datastore_Role?$filter=contains(Name, '{Name}')&$top={top}
GET/v1/odata/Datastore_Role?$filter=Code eq '{Code}'&$top={top}
GET/v1/odata/Datastore_Role?$filter=IsDefault eq {IsDefault}&$top={top}

Custom Query​

Build your own OData query against Datastore_Role. Open Run and edit the whole request inline — swap the entity set, change the $filter, or add $expand, $select, $orderby, $top, $skip. Type $ for suggestions; use ↺ Reset to restore this example.

GET/v1/odata/Datastore_Role?$top=10