Create a file
Create a file of a supported type. Currently, we support these file extensions: .csv; .html; .jmp, .jrn, .jrp (JMP); .jpeg, .jpg (JPEG); .png; .pdf; .zip; and .txt.
A successful file upload requires 3 calls in serial:
- Create a file, this endpoint, which returns an S3
PUTURL for the 2nd call and a file ID for the 3rd call - Upload the file contents to S3. Add
x-amz-server-side-encryption: AES256to the request headers, because we use server-side encryption. Here is acurlexample: - Update the file, which marks the upload as
SUCCEEDED
Note: URL is valid for 1 hour after being returned from this endpoint. It should not be stored persistently for later use.
Files up to 30MB are supported.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
customFields
Custom field values to set on the file
filename
Filename for the file
folderId
ID of the folder that contains the file
name
Display name for the file
Response headers
Content-Location
The S3 URL to which the file contents can be uploaded
Response
OK
errorMessage
uploadStatus
Allowed values:
archiveRecord
ArchiveRecord Resource if the file is archived. This is null if the file is not archived.
createdAt
Date and time the file was created
creator
UserSummary of the user who created the file
customFields
Custom field values of the file
displayId
User-friendly ID of the file
filename
folderId
ID of the folder that contains the file
id
modifiedAt
Date and time the file was last modified
name
Errors
400
Bad Request Error
403
Forbidden Error