Upload documents to a file
POST/v1/files/:fileId/documents
Form fields:
files: [binary] (1-10 files, max 20 MB each, file name max 78 characters) documentsInfo[0].displayName: "Deed.pdf" (1-255 characters, no < > : " | \ / ? *) documentsInfo[0].documentTypeId: 1 (1-12, or 13 = Underwriter Approval Letter) documentsInfo[0].mimeType: "application/pdf" (optional)
documentsInfo[i] describes files[i]. Allowed types: .pdf .doc .docx .txt .jpg .jpeg .png.
When some files cannot be stored the response is still 201 and lists them in failed.
Requires the Documents.Upload scope.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 413
- 429
- 500
- 503
At least one document was uploaded
Invalid request (VALIDATION_ERROR), or none of the documents could be uploaded
Missing, invalid or expired access token, or invalid sender header
Sender is not allowed, or the token does not have the required scope
File not found
File is archived and read-only
Request is too large
Too Many Requests
Internal Server Error
Documents could not be uploaded