UpdateAlertRobot
Updates a chatbot.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:UpdateAlertRobot |
update |
*AlertRobot
|
None | None |
Request syntax
PATCH /robot/{robotId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| robotId |
string |
Yes |
The unique ID of the chatbot. |
robotId-cs-api-test |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| lang |
string |
No |
The language. Valid values:
|
zh_CN |
| name |
string |
No |
The name of the chatbot. |
test |
| type |
string |
No |
The type of the chatbot. Valid values:
|
DING |
| url |
string |
No |
The webhook URL of the chatbot. |
https://oapi.dingtalk.com/robot/send?access_token=************** |
| digitalEmployeeName |
string |
No |
The name of the digital employee. |
apsara-ops |
| robotSignKey |
string |
No |
The signing key of the chatbot. |
abc123 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
8FDE2569-626B-5176-9844-28877A***** |
Examples
Success response
JSON format
{
"requestId": "8FDE2569-626B-5176-9844-28877A*****"
}
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.