POST/events/{eventId}/files
Creates a File (give fileFormat and fileSize; upload the binary to the returned sasUri with an HTTP PUT and no
Authorization header), a Deliverable or an ExternalLink (give url). A deliverable takes its due date, assignees and
review route onto its tracked task (trackedTaskId in the response); crew and roles come from the event's crew and roles
reads, and linking a collaborator, department or role needs Task.Edit there. Requires Edit on folderId (from
Drives_GetFileFolders), or drive-wide Edit at the root. With ownerType "Expense" it uploads an expense receipt
instead: Expense.Edit at the event is required, folderId is ignored, and the file lands in the root Receipts folder until an expense saves it as its receipt. With
ownerType "EventIntake" it uploads an intake File answer for the event (the create wizard's draftId): the right to
save its intake answers is required (organization access for a draft, Event.Edit once active), folderId is ignored,
and the file lands in the root Intake folder, owned by the event.
Path Parameters
| Field | Type | Required | Description |
|---|
| eventId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| folderId | uuid | Optional | |
| type | string | Optional | |
| name | string | Optional | |
| description | string | Optional | |
| fileFormat | string | Optional | |
| fileSize | integer | Optional | |
| url | string | Optional | |
| dueDate | date-time | Optional | |
| assignees | AddFileRequestAssigneeList | Optional | |
| reviewRoute | AddFileRequestReviewRouteInput | Optional | |
| reviewerPulls | BaseServiceCrewPull[] | Optional | |
| ownerType | string | Optional | |
AddFileRequestAssigneeList
| Field | Type | Description |
|---|
| crewIds | uuid[]| null | |
| collaboratorIds | uuid[]| null | |
| departmentIds | uuid[]| null | |
| eventRoleIds | uuid[]| null | |
| pulls | BaseServiceCrewPull[]| null | |
| Field | Type | Description |
|---|
| stages | AddFileRequestReviewRouteInputStage[]| null | |
BaseServiceCrewPull
| Field | Type | Description |
|---|
| orgCrewId | uuid | |
| placementCollaboratorId | uuid| null | |
| Field | Type | Description |
|---|
| id | uuid| null | |
| name | string| null | |
| kind | string| null | |
| groups | AddFileRequestReviewRouteInputGroup[]| null | |
| Field | Type | Description |
|---|
| logic | string| null | |
| threshold | integer| null | |
| members | AddFileRequestReviewRouteInputMember[]| null | |
Response
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| type | string| null | |
| folderId | uuid| null | |
| ownerType | string| null | |
| versionId | uuid| null | |
| sasUri | uri| null | |
| trackedTaskId | uuid| null | |