Update File/Folder
POST/medias/:id
Updates a single file or folder by ID
Request
Version stringrequired
API Version
Available options
v3id stringrequired
Unique identifier of the file or folder to update
- application/json
- Body
- Example (auto)
Bodyrequired
namestringrequired
New name for the file or folder
altTypestringrequired
Type of entity that owns the file or folder
Available options
locationaltIdstringrequired
Location identifier that owns the file or folder
{
"name": "Updated File Name.pdf",
"altType": "location",
"altId": "sx6wyHhbFdRXh302LLNR"
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
{
"updated": true,
"traceId": "33a641a2-c4a6-4123-aa82-c5b84f1a14ee"
}