Skip to main content

Rename a folder (JSON Merge Patch).

PATCH/api/v1/folders/{folder_id}folders:write

The paths of the folder and of everything beneath it change with the name. A name a sibling folder already has is 409 already_exists.

Scopefolders:write
AsynchronousNo
MCP toolupdate_folder
Portal permissionsrename_folders

Parameters​

NameInTypeRequiredDescription
folder_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonFolderPatchInput
application/merge-patch+jsonFolderPatchInput

Responses​

StatusDescriptionBody
200Success.application/json Folder or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409already_exists, conflictapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

Folder​

FieldTypeRequiredDescription
codestringRequired
folder_idstringRequired
has_childrenbooleanRequiredWhether the folder has child folders the caller can see.
namestringRequired
parent_folder_idstring or nullRequirednull for a root folder
pathstring or nullRequiredCurrent ancestor names joined by ->; null without View Folder Tree or current access to every ancestor.
projectobject or nullRequiredThe project the folder is mapped to; null when none, when the caller cannot see it, or without projects:read and View Projects.

FolderPatchInput​

FieldTypeRequiredDescription
codestring or nullOptional
folder_idstring or nullOptional
has_childrenboolean or nullOptional
namestring or nullOptional
parent_folder_idstring or nullOptional
pathstring or nullOptional
projectobject or nullOptional