# updateRecurringBillingSubscriptionPlanDiscountTemplate

Mutation · GraphQL API

Updates an existing recurring billing subscription plan discount template.

## Authentication

- SERVER

## Input

- `input` (`UpdateRecurringBillingSubscriptionPlanDiscountTemplateInput!`) — required

## Returns [RecurringBillingSubscriptionPlanDiscountPayload](/braintree/graphql/reference/types/recurring-billing-subscription-plan-discount-payload)

The response object returned after a recurring billing subscription plan discount template mutation.

### Returned fields

- `clientMutationId` (`String`): An identifier used to reconcile requests and responses. 255 characters maximum.
- `discount` (`RecurringBillingSubscriptionPlanDiscount`): The discount that was created or updated.

## Examples

### Update recurring billing subscription plan discount template

Top-level input fields for updating a recurring billing subscription plan discount template.

```graphql
mutation updateRecurringBillingSubscriptionPlanDiscountTemplate($input: UpdateRecurringBillingSubscriptionPlanDiscountTemplateInput!) {
  updateRecurringBillingSubscriptionPlanDiscountTemplate(input: $input) {
    clientMutationId
    discount {
      __typename
      id
      legacyId
      name
      description
      amount
      numberOfBillingCycles
      createdAt
      updatedAt
    }
  }
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)