update-folder
dci update-folder id
Updates the specified folder. All fields are optional.
To reparent the folder, set parentFolderId to the target folder ID
(use "root" for the top level). If a sibling at the target has the same
name, the folder is auto-renamed.
To move reports or allocations into or out of a folder, update the item's
folderId field via the report or allocation PATCH endpoint.
Request
Content-Type: application/json
Schema
{
"type": "object",
"description": "Request body for updating a folder. All fields are optional; only fields\nthe caller wants to change should be set.",
"properties": {
"name": {
"type": "string",
"description": "Folder name."
},
"description": {
"type": "string",
"description": "Folder description."
},
"parentFolderId": {
"type": "string",
"description": "Identifier of the new parent folder. Use \"root\" to move the folder to the top level. If a sibling at the new parent has the same name, the folder is auto-renamed (e.g. \"Foo\" → \"Foo (1)\").",
"example": "root"
}
}
}
Responses
200 (application/json)
OK - Folder updated.
{
"type": "object",
"description": "A Cloud Analytics folder.",
"properties": {
"id": {
"type": "string",
"description": "Folder ID."
},
"name": {
"type": "string",
"description": "Folder name."
},
"description": {
"type": "string",
"description": "Folder description."
},
"parentFolderId": {
"type": "string",
"description": "Identifier of the parent folder. Set to \"root\" if the folder is at the top level.",
"example": "root"
}
}
}
400 (application/json)
Bad Request - The server cannot process the request, often due to a malformed request.
{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
401 (application/json)
Unauthorized - Invalid API key.
{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
403 (application/json)
Forbidden - The client is not authorized to perform the request.
{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
404 (application/json)
Not Found - The requested resource does not exist.
{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
500 (application/json)
Internal Server Error - Something went wrong with the DoiT API server.
{
"type": "object",
"description": "Standard error response structure.",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
Aliases: update-folder, updatefolder