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

# updateOnePromotionalEntitlement



**mutation** `updateOnePromotionalEntitlement(input: UpdateOnePromotionalEntitlementInput!): PromotionalEntitlement!`

## Arguments

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

## Returns

`PromotionalEntitlement!`

**`createdAt`**: `DateTime`

Timestamp of when the record was created

---

**`customer`**: `Customer!`

---

**`description`**: `String`

The description of the entitlement

---

**`endDate`**: `DateTime`

The end date of the promotional entitlement

---

**`enumValues`**: `[String!]`

The enum values of the entitlement

---

**`environmentId`**: `UUID!`

The unique identifier for the environment

---

**`feature`**: `Feature!`

---

**`featureGroupIds`**: `[String!]`

Feature group IDs associated with this entitlement

---

**`featureGroups`**: `[FeatureGroup!]`

Feature groups associated with this entitlement

---

**`featureId`**: `UUID!`

The unique identifier of the entitlement feature

---

**`hasSoftLimit`**: `Boolean`

Whether the entitlement has a soft limit

---

**`hasUnlimitedUsage`**: `Boolean`

Whether the entitlement has an unlimited usage

---

**`id`**: `UUID!`

---

**`isVisible`**: `Boolean!`

Whether the entitlement is visible

---

**`meter`**: `Meter`

---

**`period`**: `PromotionalEntitlementPeriod!`

The grant period of the promotional entitlement

---

**`resetPeriod`**: `EntitlementResetPeriod`

The reset period of the entitlement

---

**`resetPeriodConfiguration`**: `ResetPeriodConfiguration`

The reset period configuration of the entitlement

---

**`startDate`**: `DateTime!`

The start date of the entitlement

---

**`status`**: `PromotionalEntitlementStatus!`

The status of the entitlement

---

**`unlimited`**: `Boolean`

Whether the entitlement has an unlimited usage

---

**`updatedAt`**: `DateTime`

Timestamp of when the record was last updated

---

**`usageLimit`**: `Float`

The usage limit of the entitlement

## Examples

```graphql Mutation
mutation UpdateOnePromotionalEntitlement($input: UpdateOnePromotionalEntitlementInput!) {
  updateOnePromotionalEntitlement(input: $input) {
    createdAt
    customer {
      additionalMetaData
      awsMarketplaceCustomerId
      billingCurrency
      billingId
      billingLinkUrl
      coupon {
        additionalMetaData
        amountsOff {
          __typename
        }
        billingId
        billingLinkUrl
        createdAt
        customers {
          __typename
        }
      }
    }
    description
    endDate
    enumValues
    environmentId
  }
}
```

```json Variables
{
  "input": {
    "id": "value",
    "update": {
      "isVisible": true,
      "period": "CUSTOM"
    }
  }
}
```

```json Response
{
  "data": {
    "updateOnePromotionalEntitlement": {
      "createdAt": "value",
      "customer": {
        "additionalMetaData": "value",
        "awsMarketplaceCustomerId": "string",
        "billingCurrency": "AED",
        "billingId": "string",
        "billingLinkUrl": "string",
        "coupon": {
          "additionalMetaData": "value",
          "amountsOff": [
            {
              "__typename": "Money"
            }
          ],
          "billingId": "string",
          "billingLinkUrl": "string",
          "createdAt": "value",
          "customers": [
            {
              "__typename": "Customer"
            }
          ]
        }
      },
      "description": "string",
      "endDate": "value",
      "enumValues": [
        "string"
      ],
      "environmentId": "value"
    }
  }
}
```


## Related topics

- [UpdateOnePromotionalEntitlementInput](https://docs.stigg.io/graphql-reference/types/UpdateOnePromotionalEntitlementInput.md)
- [PromotionalEntitlementUpdateInput](https://docs.stigg.io/graphql-reference/types/PromotionalEntitlementUpdateInput.md)
- [updateOnePackageEntitlement](https://docs.stigg.io/graphql-reference/mutations/updateOnePackageEntitlement.md)
- [deleteOnePromotionalEntitlement](https://docs.stigg.io/graphql-reference/mutations/deleteOnePromotionalEntitlement.md)
- [UpdateOnePackageEntitlementInput](https://docs.stigg.io/graphql-reference/types/UpdateOnePackageEntitlementInput.md)


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