Docs

Add Crew

POST /organizations/{orgId}/crew

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

FieldTypeRequiredDescription
orgIduuidRequired

Request Body

FieldTypeRequiredDescription
firstNamestringOptional
lastNamestringOptional
emailstringOptional
phoneNumberstringOptional
typeIdsuuid[]Optional
attributeValuesOrgAddCrewRequestAttributeValueInput[]Optional
intakeAnswersOrgAddCrewRequestIntakeAnswerInput[]Optional
roleOccupantsOrgAddCrewRequestRoleOccupantsInput[]Optional

OrgAddCrewRequestAttributeValueInput

FieldTypeDescription
attributeIduuid
valueJsonElement| null
expiresOnJsonElement| null
itemExpiriesJsonElement| null

OrgAddCrewRequestIntakeAnswerInput

FieldTypeDescription
questionIduuid
valueJsonElement| null

OrgAddCrewRequestRoleOccupantsInput

FieldTypeDescription
roleDefinitionIduuid
crewIdsuuid[]| null
collaboratorRecordIdsuuid[]| null