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

# Update RLCL

> Updates an existing RLCL. The name cannot be changed (it is used as the identifier). All other fields can be updated.

## Endpoint

```
PUT /apiops/projects/{projectName}/rlcl/{rlclName}/
```

## Authentication

Requires a Personal API Access Token.

### Header

```
Authorization: Bearer YOUR_TOKEN
```

## Request

### Headers

| Header        | Value            | Required |
| ------------- | ---------------- | -------- |
| Authorization | Bearer {token}   | Yes      |
| Content-Type  | application/json | Yes      |

### Path Parameters

| Parameter   | Type   | Required | Description                   |
| ----------- | ------ | -------- | ----------------------------- |
| projectName | string | Yes      | Project name                  |
| rlclName    | string | Yes      | RLCL name (cannot be changed) |

### Request Body

Same structure as Create RLCL. See [Create RLCL](/api-reference/rlcl/crud/create-rlcl) for field descriptions.

### Important Notes

* `name` must match the RLCL name in path (cannot be changed)
* All other fields can be updated
* Credentials and endpoints are not updated by this endpoint

## Response

### Success Response (200 OK)

```json theme={null}
{
  "success": true
}
```

### Error Response (400 Bad Request)

```json theme={null}
{
  "error": "bad_request",
  "error_description": "RLCL (PremiumUserRLCL) is not found!"
}
```

## cURL Example

```bash theme={null}
curl -X PUT \
  "https://demo.apinizer.com/apiops/projects/MyProject/rlcl/PremiumUserRLCL/" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "description": "Updated rate limit for premium users",
    "enabled": true,
    "executionOrder": "FIRST",
    "cacheConnectionTimeoutInSeconds": 5,
    "cacheErrorHandlingType": "CONTINUE",
    "timeIntervalWindowType": "SLIDING",
    "showRateLimitStatisticsInResponseHeader": true
  }'
```

## Permissions

* User must have **`IDENTITY` + `MANAGE`** permission in the project

## Notes and Warnings

* **Name Cannot Change**:
  * Name is used as identifier and cannot be changed
  * Use the existing name in the request
* **Credentials/Endpoints**:
  * Credentials and endpoints are not updated by this endpoint
  * Use separate endpoints for managing credentials and endpoints

## Related Documentation

* [Create RLCL](/api-reference/rlcl/crud/create-rlcl) - Create a new RLCL
* [Delete RLCL](/api-reference/rlcl/crud/delete-rlcl) - Delete an RLCL
