POST/organizations/{orgId}/collaborator-records
Adds a collaborator to the organization's collaborator database. typeIds and propertyValues are optional; each type must exist and not be archived, each attribute must exist in the organization,
and each value is typed by the attribute's kind: a string for Text and Link (500 characters at most), a TipTap document for RichText, a number for Number and Currency, yyyy-MM-dd for Date, an ISO UTC timestamp for DateTime, true or false for Checkbox, an id string for Select, File, Collaborator and Crew, and an array of ids for the multi kinds (a read returns a File as { id, name } and a MultiFile as a list of them). A wrong shape, an option id the attribute lacks or an archived option is a 400 naming the attribute.
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. A required Org or Both attribute, question or role the types place and the request leaves empty is a 400 whose missingRequired lists each as { kind, id, name, level }; nothing is saved.
Returns 201 with the new record's { id }. Type ids come from CollaboratorDatabase_GetCollaboratorTypes, attribute ids from CollaboratorDatabase_GetCollaboratorProperties.
Needs Collaborator.Manage at the organization.
Path Parameters
| Field | Type | Required | Description |
|---|
| orgId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| name | string | Optional | |
| typeIds | uuid[] | Optional | |
| propertyValues | CreateCollaboratorRecordRequestPropertyValue[] | Optional | |
| intakeAnswers | CreateCollaboratorRecordRequestIntakeAnswerInput[] | Optional | |
| roleOccupants | CreateCollaboratorRecordRequestRoleOccupantsInput[] | Optional | |
CreateCollaboratorRecordRequestPropertyValue
| Field | Type | Description |
|---|
| propertyId | 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 | |