YOWO7 API
Storage

POST

/api/v1/workspaces/{workspaceId}/storage/uploads/initiate

Scope storage:write

Start a file upload. PUT the file bytes to the returned upload URL, then complete the upload.

Pfad

workspaceIdPflicht
string (uuid)
Workspace that owns the resource.

Request

application/json · InitiateStorageUploadRequestDto

folderId
string (uuid)
Identifier of the folder.
fileNamePflicht
string
Name of the file.
contentType
string
Content type.
sizeBytes
integer (int64)
Size bytes.
checksumSha256
string
Checksum Sha 256.

Antworten

200InitiateStorageUploadResponseDtoThe request succeeded. The JSON body contains url, data, and meta. The linked schema is data.

Initiate storage upload response.

fileIdPflicht
string (uuid)
Identifier of the file.
uploadSessionIdPflicht
string (uuid)
Identifier of the upload session.
uploadUrlPflicht
string
URL of the upload.
uploadUrlExpiresAtPflicht
string (date-time)
When the upload url expires was recorded.
400ApiProblemThe request is invalid.
401ApiProblemThe private app token is missing or invalid.
403ApiProblemThe token is missing the required scope, or this action is not allowed.
404ApiProblemThe workspace or resource was not found.
defaultApiProblemError response.
Start an upload · YOWO7 API