DeleteFolder
POST
/api/ToBackendDeleteFolderDelete a folder
Request Body
application/json
Response Body
application/json
curl -X POST "http://localhost:3000/api/ToBackendDeleteFolder" \ -H "Content-Type: application/json" \ -d '{ "info": { "name": "api/ToBackendDeleteFolder", "traceId": "string", "idempotencyKey": "string" }, "payload": { "projectId": "string", "repoId": "string", "branchId": "string", "envId": "string", "folderNodeId": "string" } }'{
"info": {
"path": "/api/ToBackendDeleteFolder",
"method": "POST",
"mproveVersion": "string",
"duration": 0,
"status": "Ok",
"traceId": "string",
"error": null
},
"payload": {
"repo": {
"orgId": "string",
"projectId": "string",
"repoId": "string",
"currentBranchId": "string",
"repoStatus": "NeedCommit",
"conflicts": [
{
"fileId": "string",
"fileName": "string",
"lineNumber": -9007199254740991
}
],
"nodes": [
{
"id": "string",
"isFolder": true,
"name": "string",
"fileId": "string",
"children": [
{
"id": "string",
"isFolder": true,
"name": "string",
"fileId": "string",
"children": []
}
]
}
],
"changesToCommit": [
{
"fileName": "string",
"fileId": "string",
"parentPath": "string",
"status": "New",
"content": "string"
}
],
"changesToPush": [
{
"fileName": "string",
"fileId": "string",
"parentPath": "string",
"status": "New",
"content": "string"
}
]
},
"struct": {
"projectId": "string",
"structId": "string",
"errors": [
{
"title": "string",
"message": "string",
"lines": [
{
"fileId": "string",
"fileName": "string",
"lineNumber": -9007199254740991
}
]
}
],
"metrics": [
{
"modelId": "string",
"modelType": "Store",
"connectionType": "PostgreSQL",
"fieldId": "string",
"fieldClass": "dimension",
"fieldResult": "day_of_week",
"timeFieldId": "string",
"structId": "string",
"filePath": "string",
"fieldLineNum": -9007199254740991,
"type": "Model",
"metricId": "string",
"topNode": "string",
"label": "string",
"topLabel": "string",
"partNodeLabel": "string",
"partFieldLabel": "string",
"partLabel": "string",
"timeNodeLabel": "string",
"timeFieldLabel": "string",
"timeLabel": "string",
"description": "string",
"formatNumber": "string",
"currencyPrefix": "string",
"currencySuffix": "string",
"serverTs": -9007199254740991,
"hasAccessToModel": true
}
],
"presets": [
{
"presetId": "string",
"label": "string",
"path": "string",
"parsedContent": null
}
],
"mproveConfig": {
"mproveDirValue": "string",
"caseSensitiveStringFilters": true,
"weekStart": "Sunday",
"allowTimezones": true,
"defaultTimezone": "string",
"formatNumber": "string",
"currencyPrefix": "string",
"currencySuffix": "string",
"thousandsSeparator": "string"
},
"mproveVersion": "string",
"serverTs": -9007199254740991
},
"needValidate": true
}
}