---
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

---

[API](https://skmtc.net/quinyx/apis/quinyx-api.md) · [All operations](https://skmtc.net/quinyx/apis/quinyx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quinyx/quinyx-api/versions/c8b96e8ebfed/schema)
