Skip to main content

Contact Roles

EntityDatastoreDatastore.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}