Set Collaborator Record Role Occupants
PUT /organizations/{orgId}/collaborator-records/{recordId}/roles/{roleDefinitionId}/occupants
/organizations/{orgId}/collaborator-records/{recordId}/roles/{roleDefinitionId}/occupantsSets who fills one of a collaborator's Org or Both role slots (set semantics: the slot ends holding exactly crewIds and collaboratorRecordIds, org ids of this organization). Every event reads an Org slot live; a Both slot is copied onto an event when the collaborator is added there. A Single role takes one occupant; archived, blacklisted and vendor-supplied people are refused, and a role with options takes only those. The role must be placed by a type the record holds (roles in CollaboratorDatabase_GetCollaboratorRecord). Needs Collaborator.Edit at the organization. Clearing a required value, answer or last occupant is a 400 whose missingRequired names it as { kind, id, name, level }; other edits to an incomplete record succeed.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | uuid | Required | |
| recordId | uuid | Required | |
| roleDefinitionId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| crewIds | uuid[] | Optional | |
| collaboratorRecordIds | uuid[] | Optional |