POST/organizations/{orgId}/collaborator-records/{recordId}/crew
Creates a new crew member in the organization's crew database and links it to this collaborator. All fields are optional.
To link someone already in the crew database, use CollaboratorDatabase_LinkExistingCrew.
Also takes typeIds, attributeValues, intakeAnswers and roleOccupants as an org crew create does. A required attribute, question or role the picked types place and the request leaves empty is a 400 whose missingRequired lists each as { kind, id, name, level }; nothing is saved.
Needs Crew.Manage at the organization.
Path Parameters
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
| recordId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| firstName | string | Optional | |
| lastName | string | Optional | |
| email | string | Optional | |
| phoneNumber | string | Optional | |
| typeIds | uuid[] | Optional | |
| attributeValues | AddCrewToRecordRequestAttributeValueInput[] | Optional | |
| intakeAnswers | AddCrewToRecordRequestIntakeAnswerInput[] | Optional | |
| roleOccupants | AddCrewToRecordRequestRoleOccupantsInput[] | Optional | |
| Field | Type | Description |
|---|
| attributeId | uuid | |
| value | JsonElement| null | |
| expiresOn | JsonElement| null | |
| itemExpiries | JsonElement| null | |
| Field | Type | Description |
|---|
| questionId | uuid | |
| value | JsonElement| null | |
| Field | Type | Description |
|---|
| roleDefinitionId | uuid | |
| crewIds | uuid[]| null | |
| collaboratorRecordIds | uuid[]| null | |