Company Files
Public API

Upload Company File

Uploads a file to a company file category. The request must be a multipart/form-data POST. On success, a Location header is returned with the URL of the newly created file resource. The file must be under 20MB and use a supported extension. Uploading to read-only categories is not permitted. Uploading to implementation categories is not permitted on companies that have completed implementation.

OAuth Scopes: company_file.write

post/api/v1/files

Request

Request body multipart/form-data

fileNamestring required

The display name for the uploaded file.

categoryinteger required

The ID of the file category (section) to upload the file into.

share'yes' | 'no'

Whether to share the file with all employees. Accepted values: yes or no. Defaults to no.

filestring binary required

The file to upload.

Response

The file was uploaded successfully. The Location header contains the URL of the new file resource.

Changes

No recorded changes to this operation across all 2 revisions of this API.