apig__UpdateGatewayResponseV2
Updates custom error responses for an API Gateway group, letting you define response status codes, headers, and body templates for specific error types.
Instructions
[APIG] 修改分组自定义响应
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"group_id": "<group_id>",
"instance_id": "<instance_id>",
"name": "<name>",
"project_id": "<project_id>",
"response_id": "<response_id>"
},
"name": "apig__UpdateGatewayResponseV2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 响应名称。支持英文、数字、下划线、中划线,1-64个字符。 | |
| group_id | Yes | 分组的编号 | |
| responses | No | 错误类型的响应定义,其中key为错误类型。key的枚举值为: | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。 | |
| instance_id | Yes | 实例ID,在API网关控制台的“实例信息”中获取。 | |
| response_id | Yes | 响应编号 |