Rename Drive files through the API
S
Substantial Finch
Release 12.9.3 added file renaming in Drive (see Drive should allow us to rename image files). Please make the same action available in the API.
PATCH /v3/projects/{project_id}/drive/files/{file_id}
{
"file_name": "new-name.png"
}
Expected behavior:
- Same result as renaming in the portal: articles, content reuse blocks and decision trees that use the file keep working.
- The response returns the updated file, including its new URL if the URL changes.
- A clear error if the name is invalid or already taken in the folder.
- Optionally, accept a new name on the existing move and copy endpoints as well.
Log In