POST/Events/{eventId}/areas
Adds areas to the event and gives the caller admin access to each. Send exactly one of: name (with optional areaTypeId,
values, intakeAnswers and roleOccupants) for an event-only area; picks [{ areaRecordId }] for areas collaborator records own
(from Events_GetPickableAreas), each landing pending until Areas_CompleteArea; or newOwnedArea { collaboratorRecordId, name,
areaTypeId, values, intakeAnswers, roleOccupants } to create the area on the collaborator record first and add it. A picked or
new owned area whose owner is not on the event brings the owner on pending. values must be placed by the area type; on a new
owned area Org and Both values, answers and role occupants write the record, Event ones the area. File values are refused
here: upload them once the area exists. 400 when an area is already on the event (naming it), the area or its owner is
archived, or the type is unknown or archived. A direct create (name or newOwnedArea) is a 400 whose missingRequired lists each
empty required value, answer or role; an event-only area checks every placement whatever its use case.
Needs Area.Manage at the event, and Collaborator.View at the organization for an owner not on the event.
Returns { areas: [{ areaId, areaRecordId, addPending }] }.
Path Parameters
| Field | Type | Required | Description |
|---|
| eventId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| name | string | Optional | |
| areaTypeId | uuid | Optional | |
| values | AddAreaRequestAttributeValueInput[] | Optional | |
| intakeAnswers | AddAreaRequestIntakeAnswerInput[] | Optional | |
| roleOccupants | AddAreaRequestRoleOccupantsInput[] | Optional | |
| picks | AddAreaRequestPickInput[] | Optional | |
| newOwnedArea | AddAreaRequestNewOwnedAreaInput | 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 | |
| Field | Type | Description |
|---|
| areaRecordId | uuid | |
| Field | Type | Description |
|---|
| collaboratorRecordId | uuid | |
| name | string| null | |
| areaTypeId | uuid| null | |
| values | AddAreaRequestAttributeValueInput[]| null | |
| intakeAnswers | AddAreaRequestIntakeAnswerInput[]| null | |
| roleOccupants | AddAreaRequestRoleOccupantsInput[]| null | |
Response
| Field | Type | Description |
|---|
| areas | AddAreaResponseAddedArea[]| null | |
AddAreaResponseAddedArea
| Field | Type | Description |
|---|
| areaId | uuid | |
| areaRecordId | uuid| null | |
| addPending | boolean | |