Domain name for API request: csip.intl.tencentcloudapi.com.
Add or modify a receiving robot. ID > 0 means modifying an existing record; ID = 0 or not passed means adding new. The robot type is determined by the Type field. When Type=WEBHOOK, WebhookAddr is required. When Type=SCF, SCFRegion/Namespace/FunctionName/FunctionVersion/Alias/MaxWaitSeconds are all required. Type is not allowed to be changed during modification.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ModifyWebhookReceiver. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| Name | Yes | String | Bot name |
| Type | Yes | String | Robot type |
| ID | No | Integer | Robot ID. More than 0 means modifying existing records; equal to 0 or not passed means adding new |
| WebhookAddr | No | String | Webhook address |
| SCFRegion | No | String | Function region, for example, ap-guangzhou |
| Namespace | No | String | Function namespace |
| FunctionName | No | String | SCF function name |
| FunctionVersion | No | String | Function version |
| Alias | No | String | Function alias |
| Parameter Name | Type | Description |
|---|---|---|
| ID | Integer | Newly-added or modified robot ID |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyWebhookReceiver
<Common request parameters>
{
"Name": "f2",
"Type": "SCF",
"SCFRegion": "ap-guangzhou",
"Namespace": "default",
"FunctionName": "f2",
"FunctionVersion": "$LATEST",
"Alias": "alias2"
}
{
"Response": {
"ID": 21,
"RequestId": "72c22c12-d0e3-4c35-928c-64225477dc46"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback