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

Note: All fields are optional. Only provided fields are updated. Omitted fields retain their current values.

Response

Success Response (200 OK)

Response Fields

When deploy=true is specified:

Error Response (401 Unauthorized)

Error Response (400 Bad Request)

cURL Example

Example 1: Enable Maintenance Mode

Example 2: Disable Maintenance Mode

Example 3: Update Only the Status Code

Example 4: Save and Deploy

Permissions

User must have API_MANAGEMENT + MANAGE permission in the project.

Notes and Warnings

  • Partial Update: Only provided fields are updated. You can send just the fields you want to change
  • Immediate Effect: Changes take effect after the API proxy is redeployed
  • Custom Message: The message field accepts any string content. For JSON responses, ensure proper escaping
  • Content Type: The contentType field controls the Content-Type header of the maintenance mode response
  • Default Status Code: If not specified, the default HTTP status code is 403 Forbidden
  • Deploy: When deploy=true, the API proxy is automatically deployed to the specified environments after saving