# Function description
Add material to cloud shear system (Add to the material library after making the template)
# Request
# Request example
GET /materialNew/add HTTPS
Host: <host>
Content-Type: application/json
Authorization: <AuthString>
# Request Parameters
none
# Response Header
Name | Description | Type | Mandatory |
---|---|---|---|
Authorization | User token information | string | Yes |
# Request Body
The request body is a json string, for example: 2020-11-27 Add material tag 2021-02-01 Add resolution
{
"uuid": "",
"coverUrl": "",
"displayName": "",
"displayNameZhCN": "",
"materialType": 19,
"category": 0,
"packageUrl": "",
"demoUrl": "",
"demoDuration": 4000,
"version": 1,
"tags": "vivid,baby",
"tagsZhCN": "生动,宝宝",
"sizeLevel": 720,
"licenseUrl": ""
}
Name | Type | Description | Mandatory |
---|---|---|---|
uuid | string | material uuid | yes |
coverUrl | string | template cover url | yes |
displayName | string | name of material | yes |
displayNameZhCN | string | Material name in chinese | yes |
materialType | int | Material type | yes |
category | int | Material classification | yes |
packageUrl | string | Material template url | yes |
demoUrl | string | Material template demo url | yes |
demoDuration | int | The duration of the demo, in milliseconds | yes |
version | int | Material version | yes |
tags | string | label string | no |
tagsZhCN | string | label string in chinese | no |
sizeLevel | int | Resolution | no |
licenseUrl | String | license file url | no |
infoUrl | String | address of partner file | no |
# Response
# Response Header
No special response header
# Response Body
{
"code": 0,
"message": "",
"data": null
}