Create Folder
Creates a new folder in the media storage
POST
/
medias
/
folder
Create Folder
curl --request POST \
--url https://services.leadconnectorhq.com/medias/folder \
--header 'Content-Type: application/json' \
--data '
{
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"name": "New Folder",
"parentId": "64af50c42d567a3b4f5989e0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
altId: 'sx6wyHhbFdRXh302LLNR',
altType: 'location',
name: 'New Folder',
parentId: '64af50c42d567a3b4f5989e0'
})
};
fetch('https://services.leadconnectorhq.com/medias/folder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/medias/folder"
payload = {
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"name": "New Folder",
"parentId": "64af50c42d567a3b4f5989e0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"name": "New Folder",
"type": "folder",
"parentId": "64af50c42d567a3b4f5989e0",
"deleted": false,
"pendingUpload": false,
"category": "image",
"subCategory": "logo",
"isPrivate": false,
"relocatedFolder": false,
"migrationCompleted": true,
"appFolder": false,
"isEssential": false,
"status": "<string>",
"lastUpdatedBy": "user-uuid-123"
}Body
application/json
Response
200 - application/json
Returns the newly created folder object
Last modified on March 8, 2026
Was this page helpful?
Create Folder
curl --request POST \
--url https://services.leadconnectorhq.com/medias/folder \
--header 'Content-Type: application/json' \
--data '
{
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"name": "New Folder",
"parentId": "64af50c42d567a3b4f5989e0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
altId: 'sx6wyHhbFdRXh302LLNR',
altType: 'location',
name: 'New Folder',
parentId: '64af50c42d567a3b4f5989e0'
})
};
fetch('https://services.leadconnectorhq.com/medias/folder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/medias/folder"
payload = {
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"name": "New Folder",
"parentId": "64af50c42d567a3b4f5989e0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"name": "New Folder",
"type": "folder",
"parentId": "64af50c42d567a3b4f5989e0",
"deleted": false,
"pendingUpload": false,
"category": "image",
"subCategory": "logo",
"isPrivate": false,
"relocatedFolder": false,
"migrationCompleted": true,
"appFolder": false,
"isEssential": false,
"status": "<string>",
"lastUpdatedBy": "user-uuid-123"
}