Get the headcount planning context for an entity and fiscal year

Operation ID: getPlanningContext

Group: People Management › Headcount Planning Context

Open in the interactive reference

GET /headcount-planning/context

Read-only: Reads and returns; changes nothing.

Returns what you need before creating or editing a headcount plan for one entity and fiscal year: the entity and its currency, the fiscal year dates, the active departments, positions, locations, employment categories, currencies and hiring managers a plan line can reference, and a description of what your headcount planning role allows. Find entity identifiers and fiscal year values with POST headcount-planning/references/search (kinds entity and fiscalYear).

capabilities.allowedActions are descriptive hints only. They never authorize a later call: every write endpoint checks your role, department ownership and budget membership again when it runs. A token with no employee identity owns no departments and receives no department-scoped hints. Owned-department hints appear only for an employee who owns at least one department budget. Outside a planning administrator, departments and managers in this response are limited to those of your own department budgets (departments) and to active employees of the entity (managers), and an entityId outside the entities of your budgets answers ENTITY_NOT_FOUND like an unknown one, so a caller who owns or contributes to no department budget can read no entity.

The context aggregates many records, so it carries no lastModifiedDate.

Every request needs the Api-Version header. A missing or empty header, or one naming no version, answers 400. A route that does not exist in the requested version answers 404.

Parameters

Name In Type Required Description
Api-Version header string · v1 yes The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version v1.
entityId query string yes The identifier of the entity to plan for (a UUID). Find it with POST headcount-planning/references/search and kind 'entity'. Example: "3f2a9c14-6b1d-4c8e-9a51-0d7e2b6f4a10".
fiscalYear query string yes The fiscal year to plan for, as the code a fiscalYear reference returns, for example FY2027. A bare four-digit year such as 2027 also matches. Example: "FY2027".

Response

200 Success

Under data (getPlanningContextOutput):

Field Type Required Description
entity object yes The entity you asked for. Example: {"id":"3f2a9c14-6b1d-4c8e-9a51-0d7e2b6f4a10","name":"Acme Inc.","currency":"USD"}.
entity.id string yes The identifier of the entity (a UUID).
entity.name string yes The name of the entity.
entity.currency string yes The ISO 4217 code of the entity's currency, the default currency of a plan for this entity.
fiscalYear object yes The fiscal year you asked for, from the entity's fiscal calendar, or from the default calendar when the entity has none. Example: {"fiscalYear":"FY2027","startDate":"2027-01-01","endDate":"2027-12-31"}.
fiscalYear.fiscalYear string yes The fiscal year code as the calendar stores it, for example FY2027.
fiscalYear.startDate date yes The first day of the fiscal year. Format YYYY-MM-DD.
fiscalYear.endDate date yes The last day of the fiscal year. Format YYYY-MM-DD.
departments array<object> yes The active departments a plan can allocate budget to, ordered by department code. Example: [{"id":"8c0e7d52-1f3a-4b6c-9d2e-5a4b3c2d1e0f","name":"Engineering","code":"ENG"}].
departments[].id string yes The identifier of the department (a UUID).
departments[].name string yes The name of the department.
departments[].code string no The department code. Absent when none is set.
positions array<object> yes The active positions a plan line can recruit for. Example: [{"id":"1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d","name":"Software Engineer","code":"POS-0042"}].
positions[].id string yes The identifier of the position (a UUID).
positions[].name string yes The name of the position.
positions[].code string no The position number. Absent when none is set.
locations array<object> yes The work locations a plan line can name. Example: [{"id":"6a5b4c3d-2e1f-4a0b-9c8d-7e6f5a4b3c2d","name":"Berlin"}].
locations[].id string yes The identifier of the location (a UUID).
locations[].name string yes The name of the location.
employmentCategories array<object> yes The employment categories a plan line can name, ordered by name. Example: [{"id":"0f1e2d3c-4b5a-4968-8776-655443322110","name":"Full time"}].
employmentCategories[].id string yes The identifier of the employment category (a UUID).
employmentCategories[].name string yes The name of the employment category.
currencies array<object> yes The currencies an amount can be expressed in, ordered by code, with English names. Example: [{"code":"USD","name":"US Dollar"}].
currencies[].code string yes The ISO 4217 currency code.
currencies[].name string yes The English name of the currency.
managers array<object> yes The active employees who can be named as hiring manager, ordered by name. Example: [{"id":"9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b","name":"Jordan Lee"}].
managers[].id string yes The identifier of the employee (a UUID).
managers[].name string yes The display name of the employee.
capabilities object yes What your headcount planning role allows. Descriptive only, never an authorization for a later call. Example: {"planningRole":"contributor","employeeLinked":true,"allowedActions":["editOwnedDepartments","submitOwnedDepartments"]}.
capabilities.planningRole string yes Your headcount planning role. One of: "admin" (Runs the planning cycle for every plan.), "contributor" (You are linked to an employee and hold the contributor planning role, and you either own at least one department budget or belong to no department budget as a member. The editOwnedDepartments and submitOwnedDepartments hints appear only when you own a department budget.), "budgetMember" (You are linked to an employee and are not an admin, and you either lack the contributor planning role or are a contributor member of a department budget you do not own. You work only in the department budgets you belong to (editMemberDepartments).), "reader" (Holds a planning role but has no employee identity, so owns and contributes to no department budget. Can read references only.).
capabilities.employeeLinked boolean yes Whether your identity is linked to an employee. Department ownership and budget membership need one, so a token without an employee identity owns no departments.
capabilities.allowedActions array<string> yes Capability hints such as createPlans, approveDepartments, editOwnedDepartments, submitOwnedDepartments or editMemberDepartments. Empty when your role allows only reading.
{
  "data": {
    "entity": {
      "id": "3f2a9c14-6b1d-4c8e-9a51-0d7e2b6f4a10",
      "name": "Acme Inc.",
      "currency": "USD"
    },
    "fiscalYear": {
      "fiscalYear": "FY2027",
      "startDate": "2027-01-01",
      "endDate": "2027-12-31"
    },
    "departments": [
      {
        "id": "8c0e7d52-1f3a-4b6c-9d2e-5a4b3c2d1e0f",
        "name": "Engineering",
        "code": "ENG"
      }
    ],
    "positions": [
      {
        "id": "1d2c3b4a-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
        "name": "Software Engineer",
        "code": "POS-0042"
      }
    ],
    "locations": [
      {
        "id": "6a5b4c3d-2e1f-4a0b-9c8d-7e6f5a4b3c2d",
        "name": "Berlin"
      }
    ],
    "employmentCategories": [
      {
        "id": "0f1e2d3c-4b5a-4968-8776-655443322110",
        "name": "Full time"
      }
    ],
    "currencies": [
      {
        "code": "USD",
        "name": "US Dollar"
      }
    ],
    "managers": [
      {
        "id": "9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b",
        "name": "Jordan Lee"
      }
    ],
    "capabilities": {
      "planningRole": "contributor",
      "employeeLinked": true,
      "allowedActions": [
        "editOwnedDepartments",
        "submitOwnedDepartments"
      ]
    }
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}

Errors

Code Status
PLANNING_ACCESS_DENIED 400
ENTITY_NOT_FOUND 400
FISCAL_YEAR_NOT_FOUND 400

Statuses