Docs
Get Order Role Definitions
GET /organizations/{orgId}/order-role-definitions
GET
/organizations/{orgId}/order-role-definitionsLists the organization's order roles by name: fillerKind (Crew, Collaborator or Resource), cardinality, the accepted resourceTypes (id and name), requiresProcurement (filled from a need), availability and the linked access role. Archived roles are left out unless includeArchived is true. Takes an organization token with Order.View, or an event token of an event in the organization.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | uuid | Required |
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| includeArchived | boolean | Optional |
Response
Type: GetOrderRoleDefinitionResponse[]
GetOrderRoleDefinitionResponse
| Field | Type | Description |
|---|---|---|
| resourceTypes | OrderRoleResourceTypeResponse[]| null | |
| requiresProcurement | boolean | |
| accessRoleId | uuid| null | |
| accessRoleName | string| null | |
| id | uuid | |
| name | string| null | |
| icon | string| null | |
| color | string| null | |
| fillerKind | string| null | |
| cardinality | string| null | |
| isArchived | boolean | |
| useCases | string[]| null | |
| availability | GetHostRoleDefinitionResponseAvailabilityInfo| null |
OrderRoleResourceTypeResponse
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| name | string| null |
GetHostRoleDefinitionResponseAvailabilityInfo
| Field | Type | Description |
|---|---|---|
| recordIds | uuid[]| null |