Skip to main content
POST
Upload document

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

directoryId
string<uuid>
required

Directory UUID

Body

multipart/form-data

Document to upload

document
file
required

Document to upload

originalDate
string<date>

Original date of document (Required for payrolls)

name
string

Name for the document

hidden
boolean
default:false

Upload the document hidden from its viewers: the employee cannot see it (and is not notified) until it is shown. Only the literal value true hides it; any other value or its absence keeps the document visible. Same effect as the Hide option in the app

Response

200 - application/json

Uploaded document

id
string<uuid>