# Function description
Add a secondary or tertiary classification operation when used for classification settings
# Request
# Request example
POST /materialCategoryNew/add HTTPS
Host: <host>
Content-Type: application/json
Authorization: <AuthString>
# Request Parameters
none
# Request Headers
Name | Description | Type | Mandatory |
---|---|---|---|
Authorization | User token information | string | Yes |
# Request Body
The request body is a json string, for example:
{
"parentType": 42,
"level": "3",
"displayName": "test三级5",
"displayNamezhCN": "test三级5"
}
# Response
# Response Header
No special response header
# Response Body
{
"code": 0,
"message": "success",
"data": {
"id": 47,
"parentType": 42,
"level": 3,
"displayName": "test三级5",
"displayNamezhCN": "test三级5",
"orderScore": 4
}
}
The response body of a failed request is
- Special case
{
"code": 130,
"message": "二级素材下有资源,不可添加三级分类!!!"
}
- Normal situation
{
"code": <errorCode>,
"message": <errorMessage>
}