AsyncEditTimeline
Edits the timeline of a video editing task.
Debug
You can run this API directly in OpenAPI Explorer, saving you from computing signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table describes the authorization information of this API. You can use it in the Action element of RAM policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Operation: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, and List.
-
Resource type: the resource types that support authorization in the operation. Details are as follows:
- Required resource types are marked with an asterisk (*) before them.
- For operations that do not support resource-level authorization,
All Resourcesis used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Related operation: other permissions required to successfully perform the operation. The caller must have the permissions of related operations at the same time for the operation to succeed.
| Action | Access level | Resource type | Condition key | Related operation |
|---|---|---|---|---|
| aimiaobi:AsyncEditTimeline | update | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| TaskId | string | Yes | Unique identifier of the task | 0dbf1055f8a2475d99904c3b76a0ffba |
| Timelines | array<object> | Yes | Array structure of video editing timelines | |
| object | Yes | |||
| Clips | array<object> | Yes | Array of video clips | |
| object | No | Video clip | ||
| OutEx | float | No | Clip end time (in milliseconds) | 3.66 |
| ClipId | string | No | Clip ID. | 123jjdax (new, can be empty) |
| VideoId | string | No | Video ID | 7036227ae3ab71efbb4a6733a68f0102 (cannot be empty) |
| VideoName | string | No | Video name | 123.mp4 (cannot be empty) |
| In | integer | No | Start time, in seconds. Deprecated. | 0 (cannot be empty) |
| ContentInner | string | No | Segmented voice-over script | Segmented voice-over script (cannot be empty) |
| InEx | float | No | Clip start time (in milliseconds) | 0.45 |
| Out | integer | No | End time, in seconds. Deprecated. | 5 (cannot be empty) |
| TimelineId | string | No | Timeline ID | sdfjhks (new, can be empty) |
| WorkspaceId | string | Yes | llm-az2gglkjauwnnhpq | |
| AutoClips | boolean | No | Whether to enable automatic adjustment | false |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| RequestId | string | Id of the request | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Code | string | Status code | successful |
| Data | object | Business data | |
| TaskId | string | Unique task ID | 51e4efd1908242eb93ca9bbb7fc4359d |
| Message | string | Response message | Some suggestion information |
| HttpStatusCode | integer | HTTP status code | 200 |
| Message | string | Error description | success |
| Success | boolean | Indicates whether the request succeeded | true |
Examples
Success response
JSON format
{
"RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
"Code": "successful",
"Data": {
"TaskId": "51e4efd1908242eb93ca9bbb7fc4359d",
"Message": "一些建议信息"
},
"HttpStatusCode": 200,
"Message": "success",
"Success": true
}
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action. | Please check the workspaceId assignment |
Visit Error Center to view more error codes.