Skip to main content

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.

Response

Success Response (200 OK)

When 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 customMessageContentType to match your template format (e.g., application/json, application/xml, text/plain)
  • HTTP Status Code: The customMessageHttpStatusCode overrides 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 have API_MANAGEMENT + MANAGE permission in the project.