Docs

Add File

POST /events/{eventId}/files

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

FieldTypeRequiredDescription
eventIduuidRequired

Request Body

FieldTypeRequiredDescription
folderIduuidOptional
typestringOptional
namestringOptional
descriptionstringOptional
fileFormatstringOptional
fileSizeintegerOptional
urlstringOptional
dueDatedate-timeOptional
assigneesAddFileRequestAssigneeListOptional
reviewRouteAddFileRequestReviewRouteInputOptional
reviewerPullsBaseServiceCrewPull[]Optional
ownerTypestringOptional

AddFileRequestAssigneeList

FieldTypeDescription
crewIdsuuid[]| null
collaboratorIdsuuid[]| null
departmentIdsuuid[]| null
eventRoleIdsuuid[]| null
pullsBaseServiceCrewPull[]| null

AddFileRequestReviewRouteInput

FieldTypeDescription
stagesAddFileRequestReviewRouteInputStage[]| null

BaseServiceCrewPull

FieldTypeDescription
orgCrewIduuid
placementCollaboratorIduuid| null

AddFileRequestReviewRouteInputStage

FieldTypeDescription
iduuid| null
namestring| null
kindstring| null
groupsAddFileRequestReviewRouteInputGroup[]| null

AddFileRequestReviewRouteInputGroup

FieldTypeDescription
logicstring| null
thresholdinteger| null
membersAddFileRequestReviewRouteInputMember[]| null

Response

FieldTypeDescription
iduuid
namestring| null
typestring| null
folderIduuid| null
ownerTypestring| null
versionIduuid| null
sasUriuri| null
trackedTaskIduuid| null