Docs

Create Collaborator Role Definition

POST /organizations/{orgId}/collaborator-role-definitions

POST/organizations/{orgId}/collaborator-role-definitions

Adds 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

FieldTypeRequiredDescription
orgIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
iconstringOptional
colorstringOptional
fillerKindstringOptional
cardinalitystringOptional
useCasesstring[]Optional
availabilityCreateCollaboratorRoleDefinitionRequestAvailabilityInfoOptional
accessRoleIduuidOptional

CreateCollaboratorRoleDefinitionRequestAvailabilityInfo

FieldTypeDescription
recordIdsuuid[]| null

Response

Type: uuid