documents
Create a document
Create a new document. See the schema for more information on the uploaded file requirements.
post/documents
Request
- Base URL: https://api.hoorayhr.io
- URL: https://api.hoorayhr.io/documents
- Auth: API key in header authorization
Request body
Example request
{
"userId": 42,
"categoryId": 1,
"fileName": "contract-2024.pdf",
"displayName": "Employment Contract 2024",
"note": "Signed by both parties",
"status": "PUBLISHED",
"fileData": "data:application/pdf;base64,JVBERi0...==",
"labelId": 1,
"expirationDate": "2025-12-31"
}Response
Created
Example response
{
"id": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.