Domain name for API request: mps.tencentcloudapi.com.
This API is used to modify a scheme.
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: ModifySchedule. |
Version | Yes | String | Common Params. The value used for this API: 2019-06-12. |
Region | No | String | Common Params. This parameter is not required for this API. |
ScheduleId | Yes | Integer | The scheme ID. |
ScheduleName | No | String | The scheme name. |
Trigger | No | WorkflowTrigger | The trigger of the scheme. |
Activities.N | No | Array of Activity | The subtasks of the scheme. Note: You need to pass in the full list of subtasks even if you want to change only some of the subtasks. |
OutputStorage | No | TaskOutputStorage | The bucket to save the output file. |
OutputDir | No | String | The directory to save the media processing output file, which must start and end with / .Note: If this parameter is left empty, the current OutputDir value will be invalidated. |
TaskNotifyConfig | No | TaskNotifyConfig | The notification configuration. |
ResourceId | No | String | Resource ID. Ensure the corresponding resource is in the enabled state. |
Parameter Name | Type | Description |
---|---|---|
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. |
This example shows you how to modify a scheme.
POST / HTTP/1.1
Host: mps.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifySchedule
<Common request parameters>
{
"ScheduleId": 22435,
"Trigger": {
"Type": "AwsS3FileUpload",
"AwsS3FileUploadTrigger": {
"S3Bucket": "evanxia-test",
"S3Region": "us-east-1",
"Dir": "/input/"
}
}
}
{
"Response": {
"RequestId": "abc"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
FailedOperation.GenerateResource | Resource generation failed. |
FailedOperation.InvalidMpsUser | Operation failed: unauthorized MPS user. |
FailedOperation.InvalidUser | Operation failed: invalid user. |
InternalError | Internal error. |
InternalError.AccessDBError | Data error. |
InvalidParameterValue | Incorrect parameter value. |
ResourceNotFound.TemplateNotExist | The resource does not exist: the template does not exist. |
Was this page helpful?