Update File (Rename / Star)
Update File (Rename / Star)
Updates file properties such as renaming the file or marking it as starred.
Method: PUT
URL: {{base_url}}/files/{{file_id}}
Authentication
This endpoint requires authentication.
- Recommended: Bearer token in the
Authorizationheader:
Notes:
-
If your collection/folder already sets auth, this request can inherit auth.
-
Ensure
{{access_token}}is a valid, non-expired token.
Required variables
Set these variables at the environment or collection level:
Path Parameters
Example request URL:
Body (raw JSON)
Send the request body as raw JSON.
Example body:
Notes:
-
You can update either field independently.
-
If
nameis provided, the file will be renamed. -
If
starredis provided, the file will be starred or unstarred.
Sample request
Sample success response
A successful update typically returns HTTP 200 OK.
Common errors
-
400 Bad Request
-
Invalid request body
-
Invalid file name format
-
-
401 Unauthorized / 403 Forbidden
-
Missing/invalid
Authorizationheader -
Expired
{{access_token}}
-
-
404 Not Found
- File with the given
file_iddoes not exist
- File with the given
Notes
-
This endpoint allows updating file metadata only.
-
It does not replace or re-upload the file content.
-
The
namefield only changes the display name of the file in the system. -
The
starredflag can be used to highlight important files for easier access.
