document-categories
Find document categories
Retrieve all document categories.
Document categories are split into two types:
COMPANY: Documents that are shared across the organization. By default they are visible to everyone in the company. They can optionally be linked to one or more teams via the teams array — when teams are set, only members and leads of those teams can see the category and its documents.
PERSONAL: Documents that belong to individual users (contracts, payslips, etc.). The teams field is never present on personal categories.
get/document-categories
Request
- Base URL: https://api.hoorayhr.io
- URL: https://api.hoorayhr.io/document-categories
- Auth: API key in header authorization
Query parameters
type'COMPANY' | 'PERSONAL'
Filter by category type
Response
success
Example response
[
{
"id": 1,
"name": "Contracts",
"color": "CYAN",
"icon": "company",
"type": "PERSONAL",
"teams": [
1,
2
],
"createdAt": "2024-03-23T08:55:02.000Z",
"updatedAt": "2024-03-23T08:55:02.000Z"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.