Delete Material
# Description
Delete material
# Request Specification
Request Method: POST + application/json
Request Path: https://${Cloud Domain}/cgi/crm/v2/material/deleteMaterial?thirdTraceId=${Random String}
Request Headers: Refer to Public Parameters
# Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | Map | Yes | Data MAP |
| materialType | Int | Yes | Material type: 1-Product (Currently only product is supported) |
| materialIdList | List | Yes | List of material IDs |
# Request Example
{
"data": {
"materialType": 1,
"materialIdList": [
"id1",
"id2"
]
}
}
# Response Parameters
| Parameter | Type | Description |
|---|---|---|
| traceId | string | Unique request ID |
| errorDescription | string | Error description |
| errorMessage | string | Error message |
| errorCode | Int | View error codes |
# Response Example
{
"traceId": "E-O.827xxxxxx",
"errorDescription": "success",
"errorMessage": "OK",
"errorCode": 0
}
# Notes
- Do not use the message field in the response for logical judgment, as errorMessage may change;