FileService
Create File Upload
Reserves a file and returns a short-lived presigned POST form to upload it
to. Submit the form as multipart/form-data with the returned fields first
and the bytes in a trailing file part. The upload is unusable until
ConfirmFileUpload accepts it.
Required scope: documents:write
Error Codes:
- DEVELOPER.SCOPE_INSUFFICIENT: The key lacks the documents:write scope.
- FILE.INVALID_CONTENT_TYPE: The content type is not application/pdf.
- FILE.INVALID_SIZE: size_bytes is zero, negative, or above the limit.
- FILE.PENDING_LIMIT_EXCEEDED: Too many unconfirmed uploads for the key owner.
POST
Create File Upload
Авторизации
Тело
application/json
Must be application/pdf: the file is attached as the document's PDF as it is, without conversion.
Filename to store the file under (shown when downloading).
Exact size of the bytes to upload; storage rejects a larger object.