v1alpha1

Start a file upload

Changed on

Creates a pending file and returns a signed putUrl with the putHeaders to send with it, plus the file's fileId and ref. Upload the bytes to putUrl, then call POST /files/{file_id}/complete.

Answers 400 for a content type that is not allowed, 404 when uploads are off for this assistant, 429 when the member has too many pending uploads and 503 when uploads are unavailable.

Error bodies are described in the error contract.

post/api/v1alpha1/assistant/{assistant_kind}/files

Request

Headers

authorizationstring nullable

Request body

contentTypestring required

Response

Successful Response

fileIdstring required
refstring required
putUrlstring required
expiresAtstring date-time required

Changes