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

# Update active state

> Update a reward account's active state.

PUT/credit/rewards/accounts/\{token}

Update a reward account's active state.

## URL path parameters

| Fields | Description |
| - | - |
| token string  Required | Unique identifier of the reward account. **Allowable Values:**  Existing reward account token |

## Request body

| Fields | Description |
| - | - |
| is\_active boolean  Optional | A value of `true` indicates that the reward account is active and rewards can be accrued for the associated account. **Allowable Values:**  `true`, `false` |

## Sample request body

```json JSON lines wrap theme={null}
{
  "is_active": false
}
```

## Response body

| Fields | Description |
| - | - |
| token string  Returned | Unique identifier of the reward account. **Allowable Values:**  36 char max |
| credit\_account\_token string  Returned | Unique identifier of the associated credit account. **Allowable Values:**  36 char max |
| bundle\_token string  Conditionally returned | Unique identifier of the associated bundle that contains the reward policy on which the reward account is based. **Allowable Values:**  36 char max |
| is\_active boolean  Returned | A value of `true` indicates that the reward account is active. **Allowable Values:**  `true`, `false` |
| global\_rules array of objects  Conditionally returned | List of global rules. **Allowable Values:**  Valid array of one or more global rules |
| global\_rules\[].**rule\_token** string  Conditionally returned | Unique identifier of the rule. **Allowable Values:**  36 char max |
| global\_rules\[].**description** string  Conditionally returned | Description of the rule, pulled from the rule entry. **Allowable Values:**  255 char max |
| created\_time datetime  Returned | Date and time when the reward account was created on the Marqeta platform, in UTC. **Allowable Values:**  Format: yyyy-MM-ddThh:mm:ssZ |
| updated\_time datetime  Returned | Date and time when the reward account was last updated on the Marqeta platform, in UTC. **Allowable Values:**  Format: yyyy-MM-ddThh:mm:ssZ |

## Sample response body

```json JSON lines wrap theme={null}
{
  "token": "4829608d-97e4-4a8c-bdab-20b26e7f243d",
  "credit_account_token": "bbf6c086-4286-4a1c-a3dd-2f54bf6fd799",
  "bundle_token": "f0cf97cb-76f7-47a5-83e7-188b9e741cf9",
  "is_active": true,
  "created_time": "2024-01-05T20:37:11Z",
  "updated_time": "2024-01-05T20:37:11Z"
}
```


## Related topics

- [Reward Accounts Overview](https://www.marqeta.com/docs/core-api/credit-reward-accounts.md)
- [Update bundle](https://www.marqeta.com/docs/core-api/credit-bundles/update-bundle.md)
- [Update address](https://www.marqeta.com/docs/core-api/addresses/update-address.md)
- [Update substatus](https://www.marqeta.com/docs/core-api/credit-substatuses/update-substatus.md)
- [Update business director](https://www.marqeta.com/docs/core-api/businesses/business-directors/update-director.md)
