Ana içeriğe geç

Update RLCL

Endpoint

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

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

HeaderValueRequired
AuthorizationBearer {token}Yes
Content-Typeapplication/jsonYes

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name
rlclNamestringYesRLCL name (cannot be changed)

Request Body

Same structure as Create RLCL. See 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)

{
"success": true
}

Error Response (400 Bad Request)

{
"error": "bad_request",
"error_description": "RLCL (PremiumUserRLCL) is not found!"
}

cURL Example

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