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 |
|---|---|---|---|---|
| enabled | boolean | No | false | Enable or disable maintenance mode |
| httpStatusCode | integer | No | 403 | HTTP status code returned to clients during maintenance |
| contentType | string | No | application/json; charset=utf-8 | Content-Type header of the maintenance response |
| message | string | No | (default message) | Response body message returned to clients during maintenance |
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
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
Permissions
User must haveAPI_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
messagefield accepts any string content. For JSON responses, ensure proper escaping - Content Type: The
contentTypefield controls theContent-Typeheader of the maintenance mode response - Default Status Code: If not specified, the default HTTP status code is
403 Forbidden
Related Documentation
- Get API Proxy Detail - Get API proxy details
- Update Traffic Log Settings - Configure traffic logging
- Update Trace Settings - Configure trace settings
- Deploy API Proxy - Deploy API proxy to apply changes

