Edit Single Material

Last update:2022-01-07 14:31:37

Description

Edit the basic information of a specified single material through this interface.

Request Description

Request method POST/GET
Interface Address https://api.cloudv.haplat.net/vod/material/materialEdit
Content-Type Only supports application/json
If token is needed Authentication method V3

Request Parameters

Parameter Type Required Remarks
id string Yes The id of the material to be edited
name string no The name of the modified material, with a maximum of 40 characters.
publishDomain string no The adjusted publishing domain name.

Notes: When non-mandatory fields are not passed or are empty strings, “”, this field will not be modified (except for special instructions).

Return parameter

For common request parameters, please refer to the Request Syntax.

Example

Input example

curl -X POST 
  http://api.cloudv.haplat.net/vod/material/materialEdit 
  -H 'content-type: application/json' 
  -H "Host: api.cloudv.haplat.net" 
  <公共的头部参数>
  <自定义的头部参数>
  -d '{"id"="feb8ec880172100060d1cff500000000","name"="testMaterialEdit","publishDomain"="ovptest.haplat.net"}'

Notes: For the “public parameter” in the example, please refer to Common Parameters.

Error code

The following error codes are related to interface service logic, the generic error code can be found at Return Result.

Error code Description
1301 User has no permission
1004 Parameter error, please make sure all required fields have been filled in
1000 Material id cannot be empty
1000 Material id does not exist
1000 The material name and the publishing domain name cannot be empty at the same time
1000 The material name exceeds the length range
1527 Entered domain contians special characters
1531 Domain not exist
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!