Deleting Derivative Metrics
Function
This API is used to delete derivative metrics with specified IDs.
Calling Method
For details, see Calling APIs.
URI
DELETE /v2/{project_id}/design/derivative-indexs
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Project ID and Account ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
ids |
Yes |
Array of strings |
ID list, which is a string |
del_types |
No |
String |
Deletion type. Enumerated values:
|
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
data |
data object |
Indicates the final deletion result, that is, the number of objects that are successfully deleted. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DS.6000, indicating that the request fails to be processed. |
error_msg |
String |
Error message |
data |
Object |
Returned data information. |
Status code: 401
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DS.6000, indicating that the request fails to be processed. |
error_msg |
String |
Error message |
data |
Object |
Returned data information. |
Status code: 403
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code, for example, DS.6000, indicating that the request fails to be processed. |
error_msg |
String |
Error message |
data |
Object |
Returned data information. |
Example Requests
Delete derivative metrics based on the input parameters. Only derivative metrics in the draft, offline, or rejected state can be deleted.
DELETE https://{endpoint}/v2/{project_id}/design/derivative-indexs { "ids" : [ "1227990857618227200" ] }
Example Responses
Status code: 200
The operation succeeds, and the number of deleted derivative metrics is returned.
{ "value" : 1 }
Status code: 400
{ "error_code" : "DS.60xx", "error_msg" : "The user request is illegal." }
Status code: 401
{ "error_code" : "DS.60xx", "error_msg" : "User authentication failed." }
Status code: 403
{ "error_code" : "DS.60xx", "error_msg" : "The user does not have permission to call this API." }
Status Codes
Status Code |
Description |
---|---|
200 |
The operation succeeds, and the number of deleted derivative metrics is returned. |
400 |
BadRequest |
401 |
Unauthorized |
403 |
Forbidden |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot