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"
}
'Updates a single file or folder by ID
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"
}
'Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account
Access Token
"Bearer 9c48df2694a849b6089f9d0d3513efe"
Unique identifier of the file or folder to update
Successful response
Was this page helpful?