---
title: "Calculate optimal headcount by id"
method: POST
path: "/v2/forecast-calculation/groups/{groupId}/optimal-headcounts/{optimalHeadcountId}"
tags: ["Forecast Optimal Headcounts"]
---

# Calculate optimal headcount by id

`POST /v2/forecast-calculation/groups/{groupId}/optimal-headcounts/{optimalHeadcountId}`

## Path parameters

- `optimalHeadcountId` string, required
- `groupId` integer, required

## Request body

- ForecastCalculationOptimalHeadcountDatasetIntegrationRequest
  - `start` string, date-time, required
  - `end` string, date-time, required
  - `dataType` 'ACTUAL' | 'BUDGET' | 'FORECAST', required

## Response `200`

OK

## Changes

- **2026-08-13** `70a12bbb88c9` — 1 info
  - the endpoint scheme security `OAuth2ClientCredentials` was added to the API

[Change history](https://skmtc.dev/quinyx/apis/quinyx-api/changes/v2/forecast-calculation/groups/:groupId/optimal-headcounts/:optimalHeadcountId/post.md)

---

[API](https://skmtc.dev/quinyx/apis/quinyx-api.md) · [All operations](https://skmtc.dev/quinyx/apis/quinyx-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quinyx/apis/quinyx-api/revisions/cd11d3b0af6b?raw)
