API Reference

Org Units

6 endpoints· Auth: JWT or API Key
post/api/v1/console/hr/departments JWT API Key

Create 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_payroll must be on the branch's plan, or the call answers 403.

Request body

application/json
{
  "name": "string"
}
name
string
—

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/hr/departments/{id} JWT API Key

Rename 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_payroll must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "name": "string"
}
name
string
—

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/hr/departments/{id} JWT API Key

Retire 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_payroll must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/hr/departments/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/hr/positions JWT API Key

Create 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_payroll must be on the branch's plan, or the call answers 403.

Request body

application/json
{
  "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

200Success
cURL
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
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/hr/positions/{id} JWT API Key

Edit 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_payroll must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "title": "string",
  "departmentId": "00000000-0000-0000-0000-000000000000",
  "baseSalary": 0
}
title
string
—
departmentId
string (uuid)
—
baseSalary
integer (int64)
—

Responses

200Success
cURL
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
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/hr/positions/{id} JWT API Key

Retire 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_payroll must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/hr/positions/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu