Skip to main content
Media Files/FoldersVersion: v3

Update File/Folder

POST/medias/{id}

Updates a single file or folder by ID

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3

Path Parameters

idstringrequired

Unique identifier of the file or folder to update

Example:686f9817f0d3165be9fbcef6

Body

namestringrequired

New name for the file or folder

Example:Updated File Name.pdf
altTypestringrequired

Type of entity that owns the file or folder

Available optionslocation
Example:location
altIdstringrequired

Location identifier that owns the file or folder

Example:sx6wyHhbFdRXh302LLNR

Response

Successful response