Endpoint
Authentication
Requires a Personal API Access Token.Header
Request
Headers
Path Parameters
Request Body
Full JSON Body Example
Request Body Fields
Note: All fields are optional. Only provided fields are updated.
Response
Success Response (200 OK)
deploy=true is specified:
Response Fields
Error Response (401 Unauthorized)
Error Response (404 Not Found)
cURL Example
Example 1: Enable Custom JSON Response
Example 2: Enable Custom XML Response
Example 3: Disable Custom Message (Resume Normal Routing)
Example 4: Save and Deploy
Notes and Warnings
- Custom Message Mode: When
buildCustomMessage=true, the gateway returns the custom response template instead of routing to backend - Template Variables: The template supports Apinizer variables (e.g.,
${request_httpMethod},${request_uri}) that are resolved at runtime - Content Type: Set
customMessageContentTypeto match your template format (e.g.,application/json,application/xml,text/plain) - HTTP Status Code: The
customMessageHttpStatusCodeoverrides the default 200 status code - Use Cases: Health check endpoints, mock responses, maintenance responses, API versioning redirects
- Deploy: When
deploy=true, the API proxy is automatically deployed to the specified environments after saving
Permissions
User must haveAPI_MANAGEMENT + MANAGE permission in the project.
Related Documentation
- Update Error Handling - Configure error handling strategy
- Update Maintenance Mode - Configure maintenance mode
- Update Routing Status - Enable/disable routing

