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
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"
}Authorizations
API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.
Path Parameters
Company identifier
Folder identifier
Body
Response
Folder updated successfully
Id of the updated folder
