Endpoint
Authentication
Requires a Personal API Access Token.Header
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer | Yes |
| Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| apiProxyName | string | Yes | API Proxy name |
Request Body
Full JSON Body Example
Request Body Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| circuitBreakerEnabled | boolean | No | - | Enable/disable circuit breaker |
| errorWindow | integer | No | - | Time window in seconds to count errors |
| errorThresholdValue | integer | No | - | Error threshold value (count or percentage) |
| enumErrorThresholdType | string | No | - | Error threshold type |
| sleepWindow | integer | No | - | Sleep window in seconds (circuit breaker stays open) |
| halfOpenEnabled | boolean | No | - | Enable half-open state (test requests) |
EnumErrorThresholdType
COUNT- Error threshold is a count (e.g., 5 errors)PERCENT- Error threshold is a percentage (e.g., 50% error rate)
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
Error Response (400 Bad Request)
Error Response (401 Unauthorized)
Error Response (404 Not Found)
cURL Example
Example 1: Enable Circuit Breaker with Count Threshold
Example 2: Enable Circuit Breaker with Percentage Threshold
Notes and Warnings
- Error Window: Time window in seconds during which errors are counted
- Error Threshold: When threshold is reached, circuit breaker opens
- Sleep Window: Duration in seconds that circuit breaker stays open before attempting half-open
- Half-Open: When enabled, allows test requests to check if backend recovered
- Threshold Type:
COUNTuses absolute number,PERCENTuses percentage of requests
Permissions
User must haveAPI_MANAGEMENT + MANAGE permission in the project.
Related Documentation
- Update Connection Settings - Update connection settings
- Get API Proxy - Get API proxy details

