Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview

Update a flow-control key

Set a numeric control or clear it with null. Clear rate limit and window together.

PATCH/api/v2/flow-control/{flowControlKeyId}
Authorization
AuthorizationBearer token (Anlyon API key) · headerrequired

Workspace API key sent as Authorization: Bearer <key>.

or
better-auth.session_tokenAPI key · cookierequired

Browser session used by dashboard-only operations.

Path parameters
flowControlKeyIdstringrequired

Public flow-control key identifier.

matches ^fck_
Header parameters
X-Request-Idstring

Optional caller correlation ID. Unsafe or oversized values are replaced.

max length 128
Request body
requiredapplication/json
rateLimitinteger | null
min 1 · max 10000
rateLimitWindowinteger | null
min 1 · max 3600
parallelisminteger | null
min 1 · max 1000
Responses
200

Flow-control configuration and live counts returned.

successbooleanrequired
Allowed:true
dataFlowControlKeyrequired
Show properties
flowControlKeyIdstringrequired
matches ^fck_
keystringrequired
rateLimitinteger | nullrequired
min 1
rateLimitWindowinteger | nullrequired
min 1
parallelisminteger | nullrequired
min 1
isPausedbooleanrequired
isPinnedbooleanrequired
activeCountintegerrequired

Live Redis count.

min 0
waitlistCountintegerrequired

Live Redis count.

min 0
createdAtstring<date-time>required
updatedAtstring<date-time>required
400

Bad Request - Invalid input data

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
401

Unauthorized - Invalid or missing API key

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
403

Authenticated credential lacks the required scope or workspace access.

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
404

Not Found - Resource does not exist

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
429

Too Many Requests - Rate limit exceeded

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH 'https://api.anlyon.com/api/v2/flow-control/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "rateLimit": 1,
  "rateLimitWindow": 1,
  "parallelism": 1
}'
Response
{
  "success": true,
  "data": {
    "flowControlKeyId": "string",
    "key": "string",
    "rateLimit": 1,
    "rateLimitWindow": 1,
    "parallelism": 1,
    "isPaused": true,
    "isPinned": true,
    "activeCount": 0,
    "waitlistCount": 0,
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}