Update File/ Folder
Updates a single file or folder by ID
POST
/
medias
/
{id}
Update File/ Folder
curl --request POST \
--url https://services.leadconnectorhq.com/medias/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated File Name.pdf",
"altType": "location",
"altId": "sx6wyHhbFdRXh302LLNR"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Updated File Name.pdf',
altType: 'location',
altId: 'sx6wyHhbFdRXh302LLNR'
})
};
fetch('https://services.leadconnectorhq.com/medias/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/medias/{id}"
payload = {
"name": "Updated File Name.pdf",
"altType": "location",
"altId": "sx6wyHhbFdRXh302LLNR"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
200 - application/json
Successful response
Last modified on March 8, 2026
Was this page helpful?
Update File/ Folder
curl --request POST \
--url https://services.leadconnectorhq.com/medias/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated File Name.pdf",
"altType": "location",
"altId": "sx6wyHhbFdRXh302LLNR"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Updated File Name.pdf',
altType: 'location',
altId: 'sx6wyHhbFdRXh302LLNR'
})
};
fetch('https://services.leadconnectorhq.com/medias/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/medias/{id}"
payload = {
"name": "Updated File Name.pdf",
"altType": "location",
"altId": "sx6wyHhbFdRXh302LLNR"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)