POST/Events/{eventId}/collaborators
Adds an org collaborator to the event and returns the event collaborator's id; the caller is granted admin over it. Needs Collaborator.Manage at the event. Send recordId (from
CollaboratorDatabase_GetCollaboratorRecords; needs Collaborator.View at the organization) or newRecord { name, profileIds, values } to create the org record
first. profileIds picks which of the record's profiles this event uses (allowlisted by the event type). intakeAnswers answer the Event and Both
questions of the picked profiles' intake forms, and roleOccupants fill their Event and Both role slots (people not on the event come on pending);
Both slots are first written from the record's occupants, who are pulled on pending. 400 when the record is archived, already on the event, or a
profile is not allowed.
A new record takes the org gate and the instance the event gate: a 400 whose missingRequired lists each empty required attribute, question or role as { kind, id, name, level }; an existing record takes the event gate only.
areaRecordIds picks areas the record owns (needs permission to add areas); each comes on pending under the new collaborator.
Path Parameters
| Field | Type | Required | Description |
|---|
| eventId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| recordId | uuid | Optional | |
| newRecord | AddCollaboratorRequestNewRecordInput | Optional | |
| profileIds | uuid[] | Optional | |
| values | AddCollaboratorRequestPropertyValue[] | Optional | |
| crewIds | uuid[] | Optional | |
| newCrew | AddEventCrewRequestNewCrewMember[] | Optional | |
| areaRecordIds | uuid[] | Optional | |
| intakeAnswers | AddCollaboratorRequestIntakeAnswerInput[] | Optional | |
| roleOccupants | AddCollaboratorRequestRoleOccupantsInput[] | Optional | |
| Field | Type | Description |
|---|
| name | string| null | |
| profileIds | uuid[]| null | |
| values | AddCollaboratorRequestPropertyValue[]| null | |
| intakeAnswers | AddCollaboratorRequestIntakeAnswerInput[]| null | |
| roleOccupants | AddCollaboratorRequestRoleOccupantsInput[]| null | |
AddCollaboratorRequestPropertyValue
| Field | Type | Description |
|---|
| propertyId | uuid | |
| value | JsonElement| null | |
| expiresOn | JsonElement| null | |
| itemExpiries | JsonElement| null | |
AddEventCrewRequestNewCrewMember
| Field | Type | Description |
|---|
| firstName | string| null | |
| lastName | string| null | |
| email | string| null | |
| phoneNumber | string| null | |
| title | string| null | |
| profileIds | uuid[]| null | |
| values | AddEventCrewRequestValueInput[]| null | |
| intakeAnswers | AddEventCrewRequestIntakeAnswerInput[]| null | |
| roleOccupants | AddEventCrewRequestRoleOccupantsInput[]| null | |
| Field | Type | Description |
|---|
| questionId | uuid | |
| value | JsonElement| null | |
| Field | Type | Description |
|---|
| roleDefinitionId | uuid | |
| crewIds | uuid[]| null | |
| collaboratorRecordIds | uuid[]| null | |
| 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 | |
Response
Type: uuid