---
title: "Update Custom Message Settings"
method: PATCH
path: "/apiops/projects/{projectName}/apiProxies/{apiProxyName}/settings/custom-message/"
tags: ["ApiProxy"]
---

# Update Custom Message Settings

`PATCH /apiops/projects/{projectName}/apiProxies/{apiProxyName}/settings/custom-message/`

## Request

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

Updates Custom Message Builder Settings for the specified API Proxy routing

## Path parameters

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

## Request body

- ApiProxyCustomMessageUpdateDTO: API Proxy Custom Message Update DTO - used to configure custom response messages
  - `deploy` boolean: If true, deploy the API Proxy after saving changes
  - `deployTargetEnvironmentNameList` string[]: List of environment names to deploy to (required when deploy=true)
  - `buildCustomMessage` boolean: Enable custom response message building
  - `customMessageTemplate` string: Custom response message template (supports variables)
  - `customMessageContentType` string: Content type of the custom response (e.g. application/json, application/xml)
  - `customMessageHttpStatusCode` integer: HTTP status code for the custom response

## 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!

## Changes

- **2026-10-20** `d1a546deccf0`: 1 breaking
  - the `customMessageHttpStatusCode` request property format changed from no format to `int32`
  - …this revision’s changelog is incomplete
- **2026-08-11** `9ae232e55479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/apinizer/apis/apinizer-management-apis/changes/apiops/projects/:projectName/apiProxies/:apiProxyName/settings/custom-message/patch.md)

---

[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)
