# Function Description

To create a project

# Request

# request example

POST /project/create HTTPS
Host: <host>
Content-Type: application/json
Authorization: <AuthString>

#

#

# Request Headers

Name Description Type Mandatory
Authorization User token information string true

# Request Parameters

none

# Request Body

request body is JSON character string,for example:

{
  "title": 1,
  "type": 1,
  "liveUrl": 1,
  "resolvingPower": "540",
  "nvsResolution": "16:9"
}
Field Type Explain Mandatory
title String project name true
type int project type:
1:project of normal Editor,and default is normal Editor.
2:project of Live Editor
3:project of application template
false
resolvingPower String resolution of timeline true
liveUrl String Live Editor url it is mandatory when type is 2
nvsResolution String aspect ratio of timeline true

response
response header this operation does not have special response headers.

Response body

{
  "code": 0,
  "enMsg": "success",
  "msg": "成功",
  "data": {
    "projectId": 16385,
    "title": "1",
    "coverUrl": "https://alieasset.meishesdk.com/test/resource/image/2022/03/07/276/2313d21835134d38a2cb96cbfe154782.jpg",
    "createdAt": 1646633366,
    "modifyAt": 1646634721,
    "url": "https://alieasset.meishesdk.com/test/bs_project/2022/03/07/16385/cc5d66f279304a9a861420b75abcc21d.xml",
    "uuid": "381b59fecf8843afa4cee889a8074d63",
    "userId": 1,
    "path": null,
    "type": 1,
    "liveUrl": "",
    "resolvingPower": "540",
    "splitVideoUrl": null,
    "resourceId": null,
    "jobId": null,
    "status": null
  }
}

Field Type Explain Mandatory
projectId number project id true
title string project name true
coverUrl string cover link true
createdAt number create time stamp,in second true
modifyAt number modify time stamp,in second true
url string project xml file true
uuid string Universally Unique Identifier of project true
userId number user id true
path string storage key false
type number project type true
liveUrl string Live url false
resolvingPower string resolution,The timeline of the front page is creating according to the resolution false
splitVideoUrl string segment extraction url false
resourceId number resource id false
jobId number project task id false
status number Represents the status of the project synthesis, 0 initial, 1 successful, 2 failed, 100 deleted false

Failed Response Body:

{
  "code": -1,
  "enMsg": "failed",
  "msg": "失败"
}