curl --request PUT \
--url https://services.leadconnectorhq.com/medias/update-files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"filesToBeUpdated": [
{
"id": "686f9817f0d3165be9fbcef6",
"name": "Updated File Name.pdf"
}
]
}
'Updates metadata or status of multiple files and folders
curl --request PUT \
--url https://services.leadconnectorhq.com/medias/update-files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"filesToBeUpdated": [
{
"id": "686f9817f0d3165be9fbcef6",
"name": "Updated File Name.pdf"
}
]
}
'Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account
Access Token
"Bearer 9c48df2694a849b6089f9d0d3513efe"
Location identifier
"sx6wyHhbFdRXh302LLNR"
Type of entity that owns the files
location "location"
Array of file objects to be updated
Show child attributes
[
{
"id": "686f9817f0d3165be9fbcef6",
"name": "Updated File Name.pdf"
}
]Successful response
Was this page helpful?