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, including identitySource, targetAudienceRuleList, outOfTargetAction and the generalQuota* fields.

Important Notes

  • name must match the RLCL name in path (cannot be changed)
  • All other fields can be updated
  • Only the fields present in the request body are changed; omitted fields keep their current value
  • When provided, targetAudienceRuleList replaces the whole existing list
  • When identitySource is AUTH_RESOLVED, executionOrder is forced to AFTER_API_METHOD and targetVariable is ignored
  • When outOfTargetAction is GENERAL_QUOTA, generalQuotaPermittedMessageCount and generalQuotaTimeIntervalPeriodLength must be greater than 0 and generalQuotaTimeInterval is required
  • 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": "BEFORE_API_PROXY",
"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