v1

latestOpenAPI 3.1.02026-07-26294215839.4 KB
Employee Files
Public API

Upload Employee File

Uploads a file to an employee's file section. 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. Pass 0 as the employee ID to use the employee associated with the authenticated caller. Employees may upload to their own folder if the company has employee document uploads enabled.

OAuth Scopes: employee:file.write

post/api/v1/employees/{id}/files

Path parameters

idstring required

The internal employee ID of the employee to upload the file for. The special employee ID of zero (0) means to use the employee ID associated with the authenticated caller, when one exists.

Response

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