Limits and errors
Limits
| Limit | Value |
|---|---|
| Department name; names are unique among active departments under one parent | 1–100 characters |
Job code (unique in the organization, fixed after creation, still taken after retirement), job name, position title | 1–100 characters |
duties and methods of a job or position | at most 4000 characters each |
count when opening positions | 1–100, default 1 |
Objective title; key result title | 1–200 characters |
Objective description; grading note | at most 2000 characters each |
List page size limit | 1–100 |
| Period dates | YYYY-MM-DD; today is read as the UTC date |
List endpoints return next_page; pass it unchanged as page on the next request, and null means the end.
Who can write
Reads: an organization API key and an agent’s own session token can read. Writes: an organization owner or admin; a department head can manage the structure, positions, assignments and objectives of its own department and those below it. Regrading (level), designating a head (designate_head) and making an assignment primary (make_primary) are owner or admin only. An agent calling with its own session token or its own sign-in has the same authority as an organization admin. Run tokens, computer tokens and session tokens that name no agent always get 403 PERMISSION_DENIED.
Error responses
Errors are application/problem+json. Branch on code, not on detail:
{ "status": 409, "code": "POSITION_OCCUPIED", "detail": "position pos_123 already has a holder", "retryable": false}The response also carries type, title, message and diagnosticRefs.requestId; include the request ID when you report a problem.
Error codes
| Status | Code | Cause and fix | Retry |
|---|---|---|---|
| 400 | INVALID_PARAMS | Missing, out-of-range or unknown field, or a duplicate (same-named sibling department, repeated job code); fix the request from detail | No |
| 400 | POSITION_NAME_REQUIRED | Opening a position with neither job_id nor title | No |
| 400 | JOB_LEVEL_OUT_OF_RANGE | The job does not allow this level | No |
| 400 | DEPARTMENT_CYCLE | Moving a department under itself or one of its descendants | No |
| 400 | REPORTING_CYCLE | The reporting line would loop back to the position | No |
| 400 | PERIOD_OVERLAP | A period of the same cadence overlaps, or the parent is not coarser or does not contain the range | No |
| 400 | ALIGNMENT_CYCLE | An objective aligned to itself, or the alignment forms a loop | No |
| 400 | SCOPE_MISMATCH | The parent objective is outside the department and its ancestors | No |
| 400 | SCORE_OUT_OF_RANGE | A score outside 0 to 1 | No |
| 400 | GRADE_NOTE_REQUIRED | An objective with a committed key result graded other than achieved without a note | No |
| 403 | PERMISSION_DENIED | Not enough authority, or a run or computer token; see Who can write | No |
| 403 | NOT_POSITION_HOLDER | The caller editing a key result is neither a manager nor the owner position’s member holder | No |
| 404 | DEPARTMENT_NOT_FOUND, JOB_NOT_FOUND, JOB_LEVEL_NOT_FOUND, LADDER_NOT_FOUND, POSITION_NOT_FOUND, ASSIGNMENT_NOT_FOUND, PERIOD_NOT_FOUND, OBJECTIVE_NOT_FOUND, KEY_RESULT_NOT_FOUND | The ID is not an object of your organization; list to find it. An ended assignment also returns ASSIGNMENT_NOT_FOUND for transfer and terminate | No |
| 404 | ACTOR_NOT_FOUND | The holder is not an unarchived member or agent of your organization | No |
| 409 | POSITION_OCCUPIED | The position has a holder; end the assignment before closing or freezing it | No |
| 409 | POSITION_VACANT | Replacing a holder on a vacant position; hire instead | No |
| 409 | POSITION_FROZEN, POSITION_CLOSED | The position is frozen or closed and cannot be hired into, transferred into or designated head; use unfreeze for a frozen one, closing is permanent | No |
| 409 | PRIMARY_ASSIGNMENT_REQUIRED | primary: false for an actor that holds no position yet | No |
| 409 | DEPARTMENT_NOT_EMPTY | Dissolve sub-departments and close every position first | No |
| 409 | DEPARTMENT_ROOT_IMMUTABLE | The root department cannot be dissolved, moved or renamed here | No |
| 409 | DEPARTMENT_DISSOLVED | The department is dissolved and takes no sub-departments or positions; there is no reopen operation | No |
| 409 | PERIOD_CLOSED | The period is closed or the objective is graded: objectives and key results can no longer be set or revised, and the objective cannot be graded again | No |
| 409 | REVISION_CONFLICT | The job or spec changed after you read it; read it again, merge and resubmit with the new expected_revision | After a re-read |
| 503 | ACTOR_SYNCING | A just-created agent is not on the organization roster yet; the response carries Retry-After; retry with the same request_id | Yes |
Opening positions, hiring and replacing a holder all take a request_id; sending the same value again returns the first result.
Diagnose
Read the objects first: GET /workforce/v1/positions/{id} shows a position’s status and holder, GET /workforce/v1/assignments?position_id={id} its history, and GET /workforce/v1/actors/{actor} every position one holder has.