DeleteChart
POST
/api/ToBackendDeleteChartDelete a saved chart
Request Body
application/json
Response Body
application/json
curl -X POST "http://localhost:3000/api/ToBackendDeleteChart" \ -H "Content-Type: application/json" \ -d '{ "info": { "name": "api/ToBackendDeleteChart", "traceId": "string", "idempotencyKey": "string" }, "payload": { "projectId": "string", "repoId": "string", "branchId": "string", "envId": "string", "chartId": "string" } }'{
"info": {
"path": "/api/ToBackendDeleteChart",
"method": "POST",
"mproveVersion": "string",
"duration": 0,
"status": "Ok",
"traceId": "string",
"error": null
},
"payload": {
"chartUnitDrafts": [
{
"type": "chartUnit",
"id": "string",
"chartId": "string",
"modelId": "string",
"modelLabel": "string",
"chartType": "table",
"iconPath": "string",
"draft": true,
"title": "string",
"filePath": "string",
"space": "string",
"accessRoles": [
"string"
],
"accessRolesCombined": [
{
"role": "string",
"isDirect": true
}
],
"author": "string",
"canEditOrDeleteChart": true,
"isFavorite": true,
"spaceFullTitle": "string"
}
],
"chartSpaceNodes": [
{
"type": "spaceFolder",
"id": "string",
"space": "string",
"filePath": "string",
"title": "string",
"accessRoles": [
"string"
],
"accessRolesCombined": [
{
"role": "string",
"isDirect": true
}
],
"isSynthetic": true,
"modelId": "string",
"modelLabel": "string",
"children": [
{
"type": "spaceFolder",
"id": "string",
"space": "string",
"filePath": "string",
"title": "string",
"accessRoles": [
"string"
],
"accessRolesCombined": [
{
"role": "string",
"isDirect": true
}
],
"isSynthetic": true,
"modelId": "string",
"modelLabel": "string",
"children": []
}
]
}
]
}
}