> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# recalculateEntitlements

> Initiate a recalculation of entitlements for selected customers in an environment.



**mutation** `recalculateEntitlements(input: RecalculateEntitlementsInput!): RecalculateEntitlementsResult!`

## Arguments

**`input`**: `RecalculateEntitlementsInput!` (required)

Input object for triggering entitlement recalculation for one or more customers.

## Returns

`RecalculateEntitlementsResult!`

**`taskId`**: `String!`

Identifier for the background task handling the recalculation.

## Examples

```graphql Mutation
mutation RecalculateEntitlements($input: RecalculateEntitlementsInput!) {
  recalculateEntitlements(input: $input) {
    taskId
  }
}
```

```json Variables
{
  "input": {
    "environmentId": "value"
  }
}
```

```json Response
{
  "data": {
    "recalculateEntitlements": {
      "taskId": "string"
    }
  }
}
```


## Related topics

- [RecalculateEntitlementsResult](https://docs.stigg.io/graphql-reference/types/RecalculateEntitlementsResult.md)
- [RecalculateEntitlementsInput](https://docs.stigg.io/graphql-reference/types/RecalculateEntitlementsInput.md)
- [RecalculateEntitlementsSideEffectsOptionsInput](https://docs.stigg.io/graphql-reference/types/RecalculateEntitlementsSideEffectsOptionsInput.md)
- [entitlement](https://docs.stigg.io/graphql-reference/queries/entitlement.md)
- [entitlements](https://docs.stigg.io/graphql-reference/queries/entitlements.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.