POST/organizations/{orgId}/crew
Adds a contact to the crew database without an account or any access; to give someone access to the organization, use OrgCrew_InviteCrew instead.
At least one of first name, last name, email or phone is required. typeIds come from Crew_GetCrewTypes (archived types are refused) and attribute ids from OrgCrew_GetCrewAttributes.
intakeAnswers answer the Org and Both questions of the types' intake forms and roleOccupants fill their Org and Both role slots (set per role;
archived, blacklisted and vendor-supplied people are refused), in the same save. Returns 201 with the new member's { id }. Needs Crew.Manage at the organization.
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.
Path Parameters
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| firstName | string | Optional | |
| lastName | string | Optional | |
| email | string | Optional | |
| phoneNumber | string | Optional | |
| typeIds | uuid[] | Optional | |
| attributeValues | OrgAddCrewRequestAttributeValueInput[] | Optional | |
| intakeAnswers | OrgAddCrewRequestIntakeAnswerInput[] | Optional | |
| roleOccupants | OrgAddCrewRequestRoleOccupantsInput[] | 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 | |