Ana içeriğe atla

Endpoint

Authentication

Requires a Personal API Access Token.

Request

Headers

Path Parameters

Request Body

Full JSON Body Example

Request Body Fields

EnumErrorThresholdType

  • COUNT - Error threshold is a count (e.g., 5 errors)
  • PERCENT - Error threshold is a percentage (e.g., 50% error rate)
Note: All fields are optional. Only provided fields are updated.

Response

Success Response (200 OK)

When deploy=true is specified:

Response Fields

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

Example 3: Save and Deploy

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: COUNT uses absolute number, PERCENT uses percentage of requests
  • Deploy: When deploy=true, the API proxy is automatically deployed to the specified environments after saving

Permissions

User must have API_MANAGEMENT + MANAGE permission in the project.