# Enable or Disable Usage Limit
source: https://developer.mastercard.com/mastercard-processing-core/documentation/sandbox-testing/usage-limits-management/enable-disable-usage-limit/index.md

## Test case -- Success - Enable Usage Limit {#test-case--success---enable-usage-limit}

This test case describes enabling a specified usage limit stored in the CMS.

For this test case, use the following information in the request:

|   Path parameter   | Available value |
|--------------------|-----------------|
| `usage_limit_code` | DAILY_TOTAL     |
|                    | MONTHLY_TOTAL   |
| `status`           | ACTIVE          |

**Sample request**

`PUT /contracts/70001/usage-limits/DAILY_TOTAL/status`

```JSON
{
  "status": "ACTIVE"
}
```

**Sample response**

`204`

## Test case -- Success -- Disable Usage Limit {#test-case--success--disable-usage-limit}

This test case describes disabling a specified usage limit stored in the CMS.

For this test case, use the following information in the request:

|   Path parameter   | Available value |
|--------------------|-----------------|
| `usage_limit_code` | DAILY_TOTAL     |
|                    | MONTHLY_TOTAL   |
| `status`           | SUSPEND         |

**Sample request**

`PUT /contracts/70001/usage-limits/DAILY_ TOTAL/status`

```JSON
{
  "status": "SUSPEND"
}
```

**Sample response**

`204`

## Test case -- Fail -- Invalid usage limit code {#test-case--fail--invalid-usage-limit-code}

This test case describes an attempt to change the status of a specified usage limit that is not configured in the CMS.

For this test case, use the following information in the request:

|   Path parameter   | Available value |
|--------------------|-----------------|
| `usage_limit_code` | INVALID         |
| `status`           | ACTIVE          |
|                    | SUSPEND         |

**Sample request**

`PUT /contracts/70001/usage-limits/INVALID/status`

```JSON
{
  "status": "ACTIVE"
}
```

**Sample response**

`404`

```JSON
{
  "Errors": {
    "Error": [
      {
        "Source": "MASTERCARD PROCESSING",
        "ReasonCode": "USAGE_LIMIT_CODE_DOES_NOT_EXIST",
        "Description": "Usage limit code INVALID does not exist for contract with id 70001."
        "Recoverable": false,
      }
    ]
  }
}
```

