---
title: "Update JSON Error Response Template"
method: PATCH
path: "/apiops/projects/{projectName}/apiProxies/{apiProxyName}/settings/json-error-template/"
tags: ["ApiProxy"]
---

# Update JSON Error Response Template

`PATCH /apiops/projects/{projectName}/apiProxies/{apiProxyName}/settings/json-error-template/`

## Request

- Base URL: `http://167.86.118.166:32080`
- URL: `http://167.86.118.166:32080/apiops/projects/{projectName}/apiProxies/{apiProxyName}/settings/json-error-template/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/apinizer/apis/apinizer-management-apis/docs/apiops/projects/:projectName/apiProxies/:apiProxyName/settings/json-error-template/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates JSON Error Response Template for the specified API Proxy

## Path parameters

- `projectName` string, required
- `apiProxyName` string, required

## Request body

- ApiProxyJsonErrorTemplateUpdateDTO
  - `deploy` boolean: If true, deploy the API Proxy after saving changes
  - `deployTargetEnvironmentNameList` string[]: List of environment names to deploy to (required when deploy=true)
  - `jsonErrorResponseTemplate` ApiOpsJsonErrorTemplatePatchDTO: Partial update body for the JSON error response template. Every field is optional; an omitted (or null) field keeps the stored value.
    - `jsonValue` string: JSON error response template body. Omitted = unchanged.
    - `jsonErrorResponseTemplateActive` boolean: Whether the JSON error response template is applied. Omitted = unchanged.
    - `permitSpecialChars` boolean: Whether special characters in the rendered template are left unescaped. Omitted = unchanged.
    - `contentType` string: Content-Type header written on the error response. Omitted = unchanged.

## Response `200`

successful operation!

- ApiOpsResponseSuccess
  - `status` 'SUCCESS' | 'FAILURE'
  - `resultMessage` string
  - `resultList` string[]
  - `resultCount` integer
  - `deploymentResult` DeploymentResult
    - `envName` string
    - `podName` string
    - `podIp` string
    - `success` boolean
    - `detail` string
    - `responseTime` integer
    - `detailList` unknown[]
      - unknown
    - `firstFromApiResultList` unknown
  - `unresolvedReferences` string[]
  - `advisories` ApiOpsAdvisoryDTO[]
    - `level` string
    - `key` string
    - `params` object

## Other responses

- `401`: not authorized for this operation!
- `500`: internal error!

---

[API](https://skmtc.dev/apinizer/apis/apinizer-management-apis.md) - [All operations](https://skmtc.dev/apinizer/apis/apinizer-management-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/apinizer/apis/apinizer-management-apis/revisions/e083046b24cd?raw)
