Skip to content
中文

Limits and errors

Limits

LimitValue
Department name; names are unique among active departments under one parent1–100 characters
Job code (unique in the organization, fixed after creation, still taken after retirement), job name, position title1–100 characters
duties and methods of a job or positionat most 4000 characters each
count when opening positions1–100, default 1
Objective title; key result title1–200 characters
Objective description; grading noteat most 2000 characters each
List page size limit1–100
Period datesYYYY-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

StatusCodeCause and fixRetry
400INVALID_PARAMSMissing, out-of-range or unknown field, or a duplicate (same-named sibling department, repeated job code); fix the request from detailNo
400POSITION_NAME_REQUIREDOpening a position with neither job_id nor titleNo
400JOB_LEVEL_OUT_OF_RANGEThe job does not allow this levelNo
400DEPARTMENT_CYCLEMoving a department under itself or one of its descendantsNo
400REPORTING_CYCLEThe reporting line would loop back to the positionNo
400PERIOD_OVERLAPA period of the same cadence overlaps, or the parent is not coarser or does not contain the rangeNo
400ALIGNMENT_CYCLEAn objective aligned to itself, or the alignment forms a loopNo
400SCOPE_MISMATCHThe parent objective is outside the department and its ancestorsNo
400SCORE_OUT_OF_RANGEA score outside 0 to 1No
400GRADE_NOTE_REQUIREDAn objective with a committed key result graded other than achieved without a noteNo
403PERMISSION_DENIEDNot enough authority, or a run or computer token; see Who can writeNo
403NOT_POSITION_HOLDERThe caller editing a key result is neither a manager nor the owner position’s member holderNo
404DEPARTMENT_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_FOUNDThe ID is not an object of your organization; list to find it. An ended assignment also returns ASSIGNMENT_NOT_FOUND for transfer and terminateNo
404ACTOR_NOT_FOUNDThe holder is not an unarchived member or agent of your organizationNo
409POSITION_OCCUPIEDThe position has a holder; end the assignment before closing or freezing itNo
409POSITION_VACANTReplacing a holder on a vacant position; hire insteadNo
409POSITION_FROZEN, POSITION_CLOSEDThe position is frozen or closed and cannot be hired into, transferred into or designated head; use unfreeze for a frozen one, closing is permanentNo
409PRIMARY_ASSIGNMENT_REQUIREDprimary: false for an actor that holds no position yetNo
409DEPARTMENT_NOT_EMPTYDissolve sub-departments and close every position firstNo
409DEPARTMENT_ROOT_IMMUTABLEThe root department cannot be dissolved, moved or renamed hereNo
409DEPARTMENT_DISSOLVEDThe department is dissolved and takes no sub-departments or positions; there is no reopen operationNo
409PERIOD_CLOSEDThe 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 againNo
409REVISION_CONFLICTThe job or spec changed after you read it; read it again, merge and resubmit with the new expected_revisionAfter a re-read
503ACTOR_SYNCINGA just-created agent is not on the organization roster yet; the response carries Retry-After; retry with the same request_idYes

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.

Quickstart → · API reference →