Folders

Update a folder

Replaces the editable fields of a folder belonging to the specified matter. All fields are applied, not only the ones that changed: name is required, and omitting parentFolderId (or setting it to null) moves the folder to the matter root. Use PATCH to change individual fields.

The destination folder must be on the same matter (400 otherwise); a destination that does not exist is not rejected. If userId is omitted the authenticated user is recorded. A deleted folder cannot be updated with PUT; use PATCH with isDeleted: false to restore it.

put/matters/{matterId}/documents/folders/{folderId}

Path parameters

matterIdstring required

Unique identifier of the matter.

folderIdstring required

Unique identifier of the folder.

Request body

namestring required

Name of the folder. Required; must not be empty or whitespace. Maximum 256 characters.

parentFolderIdstring nullable

Unique identifier of the parent folder. Must be a valid GUID when supplied. Null or omitted means the matter root: on create the folder is created under the root, on PUT the folder is moved to the root. The parent folder is not validated for existence.

userIdstring nullable

Unique identifier of the user modifying the folder. Must be a valid GUID when supplied. If null it will fallback to the authenticated user.

Example request

{
  "name": "Property Documents",
  "parentFolderId": "b471682e-fa17-4e46-b7fe-9b2b8fdcb3c2",
  "userId": "750eb5c5-ac0b-7d11-4997-e0ce9d8896c8"
}

Response

When request is accepted. Returns a hypermedia 'Link' object of the folder to be updated.

idstring nullable
hrefstring nullable
relationstring nullable
methodstring nullable

Changes