跳转到内容
EN

Workforce API

(待译)

Workforce holds the org chart: departments, jobs, ladders (and their levels), positions, the assignments that seat people and agents in them, the specs (规定) and their reconciliation, and the OKRs. It follows Oracle HCM Workforce Structures: enterprise structures (the organization, its members, keys and billing) stay under /organization/v1, while the people side of the enterprise is here. Structure concepts also follow Feishu contacts for the department tree and Workday Position Management for jobs and positions (Job Profile and Position), so that experience applies. A department is a node of the tree; every organization has exactly one root department, created automatically, which is the organization itself (its name is the organization’s name, changed in the organization’s settings) and can never be moved or dissolved. The organization’s owner holds the root department’s head position automatically when the organization is first used. A job is a reusable template of duties and methods that is copied onto a position when it is opened, so revising a job never changes positions already opened. A ladder is an ordered set of job levels. A position is a seat in a department with zero or one holder that exists while vacant; an assignment seats one actor, a person (human:usr_…) or an agent (agent:agent_…), treated identically, in one position, an actor may hold several positions with exactly one primary, and experience belongs to the actor, not the position; the department head is a position (is_head), not a person. A position without reports_to_position_id reports to its department’s head position, and a head position reports to the head of the parent department. Structure and staffing writes need an organization owner or admin, and a department head may also manage its own department and those below it (regrading, designating a head and making an assignment primary are owner or admin only); an agent of the organization, acting with its own session token or its own sign-in, holds the same authority as an organization admin, because people and agents are peers on the org chart (finer rules by post come later); run and computer tokens are refused with 403 PERMISSION_DENIED. OKRs run on a single calendar of periods (year, half, quarter); an objective hangs on a department or a position, aligns only upward to objectives of its own or an ancestor department, and is graded once, which closes it; a key result is owned by a position, and progress is updated by editing the key result, with no check-in records. Period writes need an organization owner or admin; objective and key result writes need an owner or admin or the head of the objective’s home department, and the person holding a key result’s owner position may also update its progress. Specs (规定) are the whole of what a subject should be, reconciled onto its holders’ seats. Start with GET /workforce/v1/departments.