UpdateAlertWebhook
Updates a webhook.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:UpdateAlertWebhook |
update |
*AlertWebhook
|
None | None |
Request syntax
PATCH /webhook/{webhookId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| webhookId |
string |
Yes |
The unique identifier of the webhook. |
test |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request struct. |
|
| contentType |
string |
No |
The data content type. Valid values:
Valid values:
|
JSON |
| headers |
object |
No |
headers |
{"X-Total-Count":"0"} |
|
string |
No |
header |
key |
|
| lang |
string |
No |
The language. Valid values:
Valid values:
|
zh_CN |
| method |
string |
No |
The request method. Valid values:
Valid values:
|
GET |
| name |
string |
No |
The webhook name. |
test |
| url |
string |
No |
The alert callback URL. |
http://aliyun.com/test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response result. |
||
| requestId |
string |
The request ID. |
8A33DBEA-*****-*****-*****-***** |
Examples
Success response
JSON format
{
"requestId": "8A33DBEA-*****-*****-*****-*****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s is missing or invalid. | The parameter %s is missing or invalid. |
| 500 | InternalUnknownError | The request processing has failed due to some unknown error. | A service runtime error occurred. |
| 404 | ResourceNotFound | The specified resource %s is not found. | The specified resource% s does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.