curl --request PATCH \
--url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/files/{fileId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "claim-report-final.pdf"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440020",
"name": "claim-report-final.pdf",
"mimeType": "application/pdf",
"category": "claims",
"entityId": null,
"entityName": null,
"uploadedAt": "2026-01-20T09:15:00.000Z",
"userDate": null
}Company Files
Rename or Move File
Renames a file, moves it to a different folder, or both. Send only the fields you want to change.
Set folderId to a folder ID to move the file into that folder, or to
null to remove it from its current folder (move to root).
Required permission: company.file:update
PATCH
/
api
/
v1
/
external
/
companies
/
{companyId}
/
files
/
{fileId}
curl --request PATCH \
--url https://app.aiinsurance.io/api/v1/external/companies/{companyId}/files/{fileId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "claim-report-final.pdf"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440020",
"name": "claim-report-final.pdf",
"mimeType": "application/pdf",
"category": "claims",
"entityId": null,
"entityName": null,
"uploadedAt": "2026-01-20T09:15:00.000Z",
"userDate": null
}Authorizations
Path Parameters
Body
application/json
Response
File updated successfully
A file stored in the company file system
Was this page helpful?
