Skip to main content
POST
/
medias
/
{id}
Update File/ Folder
curl --request POST \
  --url https://services.leadconnectorhq.com/medias/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Updated File Name.pdf",
  "altType": "location",
  "altId": "sx6wyHhbFdRXh302LLNR"
}
'

Authorizations

Authorization
string
header
required

Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account

Headers

Authorization
string

Access Token

Example:

"Bearer 9c48df2694a849b6089f9d0d3513efe"

Path Parameters

id
string
required

Unique identifier of the file or folder to update

Body

application/json
name
string
required

New name for the file or folder

Example:

"Updated File Name.pdf"

altType
enum<string>
required

Type of entity that owns the file or folder

Available options:
location
Example:

"location"

altId
string
required

Location identifier that owns the file or folder

Example:

"sx6wyHhbFdRXh302LLNR"

Response

200 - application/json

Successful response

Last modified on March 4, 2026