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 |
|---|---|---|---|---|
| xmlErrorResponseTemplate | object | Yes | - | XML error template object (see fields below) |
| deploy | boolean | No | false | If true, deploy the API proxy after saving changes |
| deployTargetEnvironmentNameList | array[string] | No | - | List of environment names to deploy to (required when deploy=true) |
xmlErrorResponseTemplate Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| xmlErrorResponseTemplateActive | boolean | No | false | Enable/disable XML error template |
| xmlValue | string | No | - | XML error response template |
| contentType | string | No | text/xml;charset=UTF-8 | Content type for error response |
| permitSpecialChars | boolean | No | false | Permit special characters in template |
Template Variables
The XML template can use the following variables (replaced at runtime):#CORRELATIONID#- Request correlation ID#FAULTCODE#- Error fault code#FAULTMESSAGE#- Error fault message#FAULTSTATUSCODE#- HTTP status code#RESPONSEFROMAPI#- Response from backend API (if available)
Default Template
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
deploy=true is specified:
Deployment Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
| deploymentResult | object | Deployment result details (only present when deploy=true) |
| deploymentResult.deployed | boolean | Whether deployment was successful |
| deploymentResult.deployedEnvironments | array[string] | List of environments where deployment succeeded |
| deploymentResult.failedEnvironments | array[string] | List of environments where deployment failed |
Error Response (400 Bad Request)
Error Response (401 Unauthorized)
Error Response (404 Not Found)
cURL Example
Example 1: Enable XML Error Template
Example 2: Custom XML Error Template
Example 3: Save and Deploy
Notes and Warnings
- Template Variables: Use
#VARIABLE#syntax for runtime replacement - XML Format: Template must be valid XML
- Content Type: Default is
text/xml;charset=UTF-8for SOAP - Special Characters: When
permitSpecialChars=true, special characters are not escaped - Active Flag: Set
xmlErrorResponseTemplateActive=trueto enable template - SOAP APIs: Primarily used for SOAP/XML APIs
- Deploy: When
deploy=true, the API proxy is automatically deployed after saving. ProvidedeployTargetEnvironmentNameListwith target environment names
Permissions
User must haveAPI_MANAGEMENT + MANAGE permission in the project.
Related Documentation
- Update JSON Error Template - Update JSON error template
- Get API Proxy - Get API proxy details

