curl --request PATCH \
--url https://go.aiinsurance.io/api/v1/companies/{companyId}/folders/{folderId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Archived Claims"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440001"
}Rename, Move or Categorize Folder
Rename a folder, move it under another folder, or set its document
category. To move documents rather than folders, use Bulk Move Files
(bulkMoveCompanyFiles) or Rename, Move, or Categorize File
(updateCompanyFile).
Renames a folder (name), moves it under a different parent
(parentFolderId), sets its category (category), or any combination.
Send only the fields you want to change — at least one must be present.
Set parentFolderId to a folder id to reparent, or to null to move
the folder to the owner’s top level. The destination must belong to the
same owner, and a folder can never be moved into itself or its own
subtree (400).
Set category to one of the owner type’s configured categories, or to
null to clear it. An unconfigured label is a 400 unless the folder
already carries it. The folder’s files keep their own categories — a
folder’s category never applies to its contents.
Required permission: file.edit
curl --request PATCH \
--url https://go.aiinsurance.io/api/v1/companies/{companyId}/folders/{folderId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Archived Claims"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440001"
}