curl --request POST \
--url https://services.leadconnectorhq.com/medias/folder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"name": "New Folder",
"parentId": "64af50c42d567a3b4f5989e0"
}
'{
"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"
}Creates a new folder in the media storage
curl --request POST \
--url https://services.leadconnectorhq.com/medias/folder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"altId": "sx6wyHhbFdRXh302LLNR",
"altType": "location",
"name": "New Folder",
"parentId": "64af50c42d567a3b4f5989e0"
}
'{
"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"
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account
Access Token
"Bearer 9c48df2694a849b6089f9d0d3513efe"
Location Id
"sx6wyHhbFdRXh302LLNR"
Type of entity (location only)
location "location"
Name of the folder to be created
"New Folder"
ID of the parent folder (optional)
"64af50c42d567a3b4f5989e0"
Returns the newly created folder object
Location identifier that owns this folder
"sx6wyHhbFdRXh302LLNR"
Type of entity that owns the folder
location "location"
Name of the folder
"New Folder"
Type of the object (always 'folder' for folders)
"folder"
ID of the parent folder (null for root folders)
"64af50c42d567a3b4f5989e0"
Whether the folder has been deleted
false
Whether there are pending uploads to this folder
false
Primary category of content stored in the folder
"image"
Sub-category of content stored in the folder
"logo"
Whether the folder is private and not publicly accessible
false
Whether the folder has been moved from its original location
false
Whether the data migration process has been completed for this folder
true
Whether this is a system-generated application folder
false
Whether the folder is essential and should not be deleted
false
Current status of the folder
ID of the user who last updated the folder
"user-uuid-123"
Was this page helpful?