Bulk Update Files/ Folders
Updates metadata or status of multiple files and folders
PUT
/
medias
/
update-files
Bulk Update Files/ Folders
curl --request PUT \
--url https://services.leadconnectorhq.com/medias/update-files \
--header 'Content-Type: application/json' \
--data '
{
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"filesToBeUpdated": [
{
"id": "686f9817f0d3165be9fbcef6",
"name": "Updated File Name.pdf"
}
]
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
altId: 'sx6wyHhbFdRXh302LLNR',
altType: 'location',
filesToBeUpdated: [{id: '686f9817f0d3165be9fbcef6', name: 'Updated File Name.pdf'}]
})
};
fetch('https://services.leadconnectorhq.com/medias/update-files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/medias/update-files"
payload = {
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"filesToBeUpdated": [
{
"id": "686f9817f0d3165be9fbcef6",
"name": "Updated File Name.pdf"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.put(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?
Bulk Update Files/ Folders
curl --request PUT \
--url https://services.leadconnectorhq.com/medias/update-files \
--header 'Content-Type: application/json' \
--data '
{
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"filesToBeUpdated": [
{
"id": "686f9817f0d3165be9fbcef6",
"name": "Updated File Name.pdf"
}
]
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
altId: 'sx6wyHhbFdRXh302LLNR',
altType: 'location',
filesToBeUpdated: [{id: '686f9817f0d3165be9fbcef6', name: 'Updated File Name.pdf'}]
})
};
fetch('https://services.leadconnectorhq.com/medias/update-files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/medias/update-files"
payload = {
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"filesToBeUpdated": [
{
"id": "686f9817f0d3165be9fbcef6",
"name": "Updated File Name.pdf"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)