Docs
Create Collaborator Role Definition
POST /organizations/{orgId}/collaborator-role-definitions
POST
/organizations/{orgId}/collaborator-role-definitionsAdds a role to the collaborator 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 collaborator record, on each event, or both; it defaults to Org. An optional availability list narrows who its pickers offer. accessRoleId names the access role whoever fills it holds at the collaborator; from AccessRoles_GetAccessRoles. Org admins only. Place it on a type with CollaboratorDatabase_AssignCollaboratorTypeRole. Needs Collaborator.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 | CreateCollaboratorRoleDefinitionRequestAvailabilityInfo | Optional | |
| accessRoleId | uuid | Optional |
CreateCollaboratorRoleDefinitionRequestAvailabilityInfo
| Field | Type | Description |
|---|---|---|
| recordIds | uuid[]| null |
Response
Type: uuid