API Reference
Org Units
/api/v1/console/hr/departments JWT API KeyCreate a department
L2.
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Request body
{
"name": "string"
}| name string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/departments" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string"
}'Request body (JSON)
Headers
/api/v1/console/hr/departments/{id} JWT API KeyRename a department
L2.
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"name": "string"
}| name string | — |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/hr/departments/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/departments/{id} JWT API KeyRetire a department
L2,.
A tombstone with a mandatory reason, and refused while any live position or employee still names it. The alternative is a roster whose rows point at a unit every reader filters out — which renders as an employee with no department and no way to discover why.
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/hr/departments/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers
/api/v1/console/hr/positions JWT API KeyCreate a position
L2,.
`baseSalary` is the per-title default a console offers when the operator picks the title. L2 records that nothing in the reference ever read the seeded values; offering it at creation is the only honest use for the column.
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Request body
{
"title": "string",
"departmentId": "00000000-0000-0000-0000-000000000000",
"baseSalary": 0
}| title string | — |
| departmentId string (uuid) | — |
| baseSalary integer (int64) | Monthly default, minor units. Never negative. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/positions" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"title": "string",
"departmentId": "00000000-0000-0000-0000-000000000000",
"baseSalary": 0
}'Request body (JSON)
Headers
/api/v1/console/hr/positions/{id} JWT API KeyEdit a position
L2. The old and new base salary are both on the audit payload — it is the field a dispute is about.
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"title": "string",
"departmentId": "00000000-0000-0000-0000-000000000000",
"baseSalary": 0
}| title string | — |
| departmentId string (uuid) | — |
| baseSalary integer (int64) | — |
Responses
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/hr/positions/{id}" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"title": "string",
"departmentId": "00000000-0000-0000-0000-000000000000",
"baseSalary": 0
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/positions/{id} JWT API KeyRetire a position
L2,.
Refused while any live employee still holds it: the labour report resolves its "role" dimension through `Position.title`, so a retired title silently moves every one of that person's hours into the unattributed bucket.
- Capability
manage_hr_settings- API key scope
cap:manage_hr_settings(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/hr/positions/{id}" \
-H "X-Api-Key: <YOUR_API_KEY>"Path parameters
Headers