Documents
Upload Employee Document
POST
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Headers
The account identifier
Path Parameters
Body
application/json
The filename of the file to upload
Example:
"weather-forecast"
The file format of the file
The base64 encoded content of the file to upload
Example:
"VGhpcyBpc24ndCByZWFsbHkgYSBzYW1wbGUgZmlsZSwgYnV0IG5vIG9uZSB3aWxsIGV2ZXIga25vdyE"
The categoryId of the documents
Example:
"6530"
The path for the file to be uploaded to
Example:
"/path/to/file"
The category to be associated with the file to be uploaded. Id will take precedence over name.
Example:
{
"name": "reports",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
The confidentiality level of the file to be uploaded
Response
201
application/json
The document related to the employee with the given identifier was uploaded.
Example:
201
Example:
"Employee created successfully"
Example:
"2021-01-01T01:01:01.000Z"
Example:
[
{
"status": 400,
"url": "https://api.someprovider.com/v1/endpoint",
"raw": {
"error": "Bad Request",
"message": "The supplied data is invalid"
},
"headers": {
"date": "Tue, 02 Apr 2024 13:52:01 GMT",
"content-type": "application/json; charset=utf-8",
"transfer-encoding": "chunked",
"connection": "close"
}
}
]
Example:
[
{
"message": "The provided field type is not supported in the current model."
}
]
Was this page helpful?