Docs

Add Area

POST /Events/{eventId}/areas

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

FieldTypeRequiredDescription
eventIduuidRequired

Request Body

FieldTypeRequiredDescription
namestringOptional
areaTypeIduuidOptional
valuesAddAreaRequestAttributeValueInput[]Optional
intakeAnswersAddAreaRequestIntakeAnswerInput[]Optional
roleOccupantsAddAreaRequestRoleOccupantsInput[]Optional
picksAddAreaRequestPickInput[]Optional
newOwnedAreaAddAreaRequestNewOwnedAreaInputOptional

AddAreaRequestAttributeValueInput

FieldTypeDescription
attributeIduuid
valueJsonElement| null
expiresOnJsonElement| null
itemExpiriesJsonElement| null

AddAreaRequestIntakeAnswerInput

FieldTypeDescription
questionIduuid
valueJsonElement| null

AddAreaRequestRoleOccupantsInput

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

AddAreaRequestPickInput

FieldTypeDescription
areaRecordIduuid

AddAreaRequestNewOwnedAreaInput

FieldTypeDescription
collaboratorRecordIduuid
namestring| null
areaTypeIduuid| null
valuesAddAreaRequestAttributeValueInput[]| null
intakeAnswersAddAreaRequestIntakeAnswerInput[]| null
roleOccupantsAddAreaRequestRoleOccupantsInput[]| null

Response

FieldTypeDescription
areasAddAreaResponseAddedArea[]| null

AddAreaResponseAddedArea

FieldTypeDescription
areaIduuid
areaRecordIduuid| null
addPendingboolean