Docs
Create Area Record
POST /organizations/{orgId}/collaborator-records/{recordId}/area-records
POST
/organizations/{orgId}/collaborator-records/{recordId}/area-recordsAdds an area to a collaborator record and returns its id: name, an optional area type, its Org and Both values, Org and Both intake answers and record role occupants, in one save. A required value, answer or role left empty is a 400 whose missingRequired lists each; nothing is saved. File values are uploaded after the area exists. Needs Collaborator.Manage at the organization.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | uuid | Required | |
| recordId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | |
| areaTypeId | uuid | Optional | |
| values | CreateAreaRecordRequestValueInput[] | Optional | |
| intakeAnswers | CreateAreaRecordRequestIntakeAnswerInput[] | Optional | |
| roleOccupants | CreateAreaRecordRequestRoleOccupantsInput[] | Optional |
CreateAreaRecordRequestValueInput
| Field | Type | Description |
|---|---|---|
| attributeId | uuid | |
| value | JsonElement| null | |
| expiresOn | JsonElement| null | |
| itemExpiries | JsonElement| null |
CreateAreaRecordRequestIntakeAnswerInput
| Field | Type | Description |
|---|---|---|
| questionId | uuid | |
| value | JsonElement| null |
CreateAreaRecordRequestRoleOccupantsInput
| Field | Type | Description |
|---|---|---|
| roleDefinitionId | uuid | |
| crewIds | uuid[]| null | |
| collaboratorRecordIds | uuid[]| null |
Response
Type: uuid