apig__UpdateGatewayResponseTypeV2
Updates a custom gateway response for a specified error type in an API gateway group, including status code, headers, and body template.
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>",
"project_id": "<project_id>",
"response_id": "<response_id>",
"response_type": "<response_type>"
},
"name": "apig__UpdateGatewayResponseTypeV2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | 响应的Body模板 | |
| status | No | 响应的HTTP状态码。范围为200-599,但不允许为444。 | |
| headers | No | 自定义的响应头 | |
| group_id | Yes | 分组的编号 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](apig-api-180713009.xml)。 | |
| instance_id | Yes | 实例ID,在API网关控制台的“实例信息”中获取。 | |
| response_id | Yes | 响应编号 | |
| response_type | Yes | 错误类型 |