Docs
Create Crew Role Definition
POST /organizations/{orgId}/crew-role-definitions
POST
/organizations/{orgId}/crew-role-definitionsAdds a role to the crew role library and returns its id. fillerKind (Crew or Collaborator) and cardinality (Single or Multi) are fixed at creation. useCases (Org, Event, or both) says whether the role is filled on the crew record, on each event, or both; it defaults to Org. An optional availability list narrows who its pickers offer. Place it on a type with Crew_AssignCrewTypeRole. Needs Crew.Configure at the organization.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | |
| icon | string | Optional | |
| color | string | Optional | |
| fillerKind | string | Optional | |
| cardinality | string | Optional | |
| useCases | string[] | Optional | |
| availability | CreateCrewRoleDefinitionRequestAvailabilityInfo | Optional |
CreateCrewRoleDefinitionRequestAvailabilityInfo
| Field | Type | Description |
|---|---|---|
| recordIds | uuid[]| null |
Response
Type: uuid