CreateEditingProject

Updated at:

Creates a cloud editing project. You can set the title, description, timeline, and cover of the project.

Operation description

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ice:CreateEditingProject

create

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Title

string

Yes

The title of the cloud editing project.

example

Description

string

No

The description of the cloud editing project.

Description

Timeline

string

No

The timeline of the cloud editing project in JSON format.

{"VideoTracks":[{"VideoTrackClips":[{"MediaId":"****4d7cf14dc7b83b0e801c****"},{"MediaId":"****4d7cf14dc7b83b0e801c****"}]}]}

CoverURL

string

No

The cover of the cloud editing project.

https://example.com/example.png

TemplateId

string

No

The template ID. You can use a template to quickly build a timeline.

Important You must specify either Timeline or TemplateId, but not both. If TemplateId is specified, ClipsParam must also be specified.

****96e8864746a0b6f3****

ClipsParam

string

No

The material parameters for the template in JSON format. If TemplateId is specified, ClipsParam must also be specified. For more information about the format, see Create and use standard templates and Create and use advanced templates.

See the template documentation

TemplateType

string

No

The templatetype. This parameter is required when you create a cloud editing project based on a template. Default value: Timeline. Valid values:

  • Timeline: standard template.

  • VETemplate: advanced template.

Valid values:

  • Timeline :

    Standard template.

  • VETemplate :

    Advanced template.

Timeline

MaterialMaps

string

No

The materials associated with the project. Separate multiple material IDs with commas (,). You can associate up to 10 material IDs of each type.

{"video":"*****2e057304fcd9b145c5cafc*****", "image":"****8021a8d493da643c8acd98*****,*****cb6307a4edea614d8b3f3c*****", "liveStream": "[{\"appName\":\"testrecord\",\"domainName\":\"test.alivecdn.com\",\"liveUrl\":\"rtmp://test.alivecdn.com/testrecord/teststream\",\"streamName\":\"teststream\"}]", "editingProject": "*****9b145c5cafc2e057304fcd*****"}

BusinessConfig

string

No

The business configuration of the project. You can ignore this parameter for standard editing projects.

  • If the project is a live streaming editing project, OutputMediaConfig.StorageLocation is required.

  • If OutputMediaConfig.Path is not specified, the produced live streaming clips are stored in the root directory by default.

  • OutputMediaTarget can be set to vod-media or oss-object. If not specified, the default value is oss-object.

  • If OutputMediaTarget is set to vod-media, the Path parameter does not take effect.

{ "OutputMediaConfig" : { "StorageLocation": "test-bucket.oss-cn-shanghai.aliyuncs.com", "Path": "test-path" }, "OutputMediaTarget": "oss-object", "ReservationTime": "2021-06-21T08:05:00Z" }

ProjectType

string

No

The type of the editing project.

  • EditingProject: standard editing project.

  • LiveEditingProject: live streaming editing project.

LiveEditingProject

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

******3B-0E1A-586A-AC29-742247******

Project

object

The cloud editing project.

ProjectId

string

The ID of the cloud editing project.

****01bf24bf41c78b2754cb3187****

Title

string

The title of the cloud editing project.

example_title

Description

string

The description of the project.

example_description

Timeline

string

The timeline of the cloud editing project in JSON format. For more information about the structure, see TimeLine. If this field is empty, an empty timeline is created and the total duration of the cloud editing project is 0.

{"VideoTracks":[{"VideoTrackClips":[{"MediaId":"****4d7cf14dc7b83b0e801c****"},{"MediaId":"****4d7cf14dc7b83b0e801c****"}]}]}

TemplateId

string

The template ID.

****96e8864746a0b6f3****

ClipsParam

string

The material parameters for the template.

See the template documentation

CoverURL

string

The cover of the cloud editing project.

http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires=&OSSAccessKeyId=&Signature=&security-token=

Status

integer

The status of the cloud editing project.

All cloud editing project statuses:

  • 1: Draft.

  • 2: Editing.

  • 3: Producing.

  • 4: Produced.

  • 5: ProduceFailed.

  • 7: Deleted.

2

StatusName

string

The name of the cloud editing status, which corresponds to the status name in the status list.

Editing

CreateTime

string

The time when the cloud editing project was created. The time follows the ISO 8601 standard and is displayed in UTC (ending with Z).

2021-01-08T16:52:07Z

ModifiedTime

string

The time when the cloud editing project was modified. The time follows the ISO 8601 standard and is displayed in UTC (ending with Z).

2021-01-08T16:52:07Z

Duration

number

The duration of the cloud editing project.

3.4200000

CreateSource

string

The method used to create the cloud editing project.

  • OpenAPI

  • AliyunConsole

  • WebSDK

  • LiveEditingOpenAPI

  • LiveEditingConsole

WebSDK

ModifiedSource

string

The method used to modify the cloud editing project.

  • OpenAPI

  • AliyunConsole

  • WebSDK

  • LiveEditingOpenAPI

  • LiveEditingConsole

WebSDK

TemplateType

string

The template type of the cloud editing project.

  • Timeline

  • VETemplate

Timeline

BusinessConfig

string

The business configuration of the project. You can ignore this parameter for standard editing projects.

{ "OutputMediaConfig" : { "StorageLocation": "test-bucket.oss-cn-shanghai.aliyuncs.com", "Path": "test-path" }, "OutputMediaTarget": "oss-object", "ReservationTime": "2021-06-21T08:05:00Z" }

ProjectType

string

The type of the editing project. Default value: EditingProject.

  • EditingProject: standard editing project.

  • LiveEditingProject: live streaming editing project.

LiveEditingProject

BusinessStatus

string

The business status of the project. You can ignore this parameter for standard editing projects.

  • Reserving

  • ReservationCanceled

  • BroadCasting

  • LoadingFailed

  • LiveFinished

Reserving

Examples

Success response

JSON format

{
  "RequestId": "******3B-0E1A-586A-AC29-742247******",
  "Project": {
    "ProjectId": "****01bf24bf41c78b2754cb3187****",
    "Title": "example_title",
    "Description": "example_description",
    "Timeline": "{\"VideoTracks\":[{\"VideoTrackClips\":[{\"MediaId\":\"****4d7cf14dc7b83b0e801c****\"},{\"MediaId\":\"****4d7cf14dc7b83b0e801c****\"}]}]}",
    "TemplateId": "****96e8864746a0b6f3****",
    "ClipsParam": "See the template documentation",
    "CoverURL": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png?Expires=&OSSAccessKeyId=&Signature=&security-token=",
    "Status": 2,
    "StatusName": "Editing",
    "CreateTime": "2021-01-08T16:52:07Z",
    "ModifiedTime": "2021-01-08T16:52:07Z",
    "Duration": 3.42,
    "CreateSource": "WebSDK",
    "ModifiedSource": "WebSDK",
    "TemplateType": "Timeline",
    "BusinessConfig": "{ \"OutputMediaConfig\" :    { \"StorageLocation\": \"test-bucket.oss-cn-shanghai.aliyuncs.com\", \"Path\": \"test-path\"   }, \"OutputMediaTarget\": \"oss-object\", \"ReservationTime\": \"2021-06-21T08:05:00Z\" }",
    "ProjectType": "LiveEditingProject",
    "BusinessStatus": "Reserving"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.