This endpoint serves the purpose of creating a company documents.
cURL
curl --request POST \ --url https://api.roostedhr.com/api/1_12/company/documents \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data ' { "name": "<string>", "file": "<string>", "type": "<string>", "file_name": "<string>" } '
{ "id": 123, "name": "Weekly Payroll", "file_name": "Weekly_Payroll_2023", "location": "https://schedulehead-files.nyc3.digitaloceanspaces.com/Weekly_Payroll_2023.pdf", "date_added": "Dec 12th", "type": "application/pdf", "deleted": 0, "date_deleted": null }
Company Document Body
OK
"Dec 12th"