tencent cloud

Modifying Shipping Task
Last updated: 2024-12-16 16:08:46
Modifying Shipping Task
Last updated: 2024-12-16 16:08:46

Feature Description

This API is used to modify an existing shipping task. Currently, only the effective parameter of a shipping task can be modified.

Request

Request line

PUT /deliverfunction

Sample request

PUT /deliverfunction HTTP/1.1
Host: <Region>.cls.myqcloud.com
Authorization: <AuthorizationString>
Content-Type: application/json

{
"topic_id": "yyyy-yy-yy-yy-yyyyyyyy",
"name_space": "test",
"function_name": "myfunction",
"qualifier": "$LATEST",
"max_wait": 60,
"max_size": 100
"effective": "true",
}

Request headers

No special request headers

Request parameters

Parameter
Type
Required
Description
topic_id
string
Yes
ID of the topic to which shipping rules belong
name_space
string
Yes
Namespace
function_name
string
Yes
Shipping function name
qualifier
string
Yes
Function version
max_size
int
No
Maximum number of messages shipped
max_wait
int
No
Maximum shipping wait duration, in seconds
effective
bool
Yes
Shipping switch

Response

Sample response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0


Response headers

No special response headers

Response parameters

None
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback