Import Courses
Import Courses through public channels
POST
/
courses
/
courses-exporter
/
public
/
import
Import Courses
curl --request POST \
--url https://services.leadconnectorhq.com/courses/courses-exporter/public/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "<string>",
"products": [
{
"title": "<string>",
"description": "<string>",
"categories": [
{
"title": "<string>",
"thumbnailUrl": "<string>",
"posts": [
{
"title": "<string>",
"description": "<string>",
"thumbnailUrl": "<string>",
"bucketVideoUrl": "<string>",
"postMaterials": [
{
"title": "<string>",
"url": "<string>"
}
]
}
],
"subCategories": [
{
"title": "<string>",
"thumbnailUrl": "<string>",
"posts": [
{
"title": "<string>",
"description": "<string>",
"thumbnailUrl": "<string>",
"bucketVideoUrl": "<string>",
"postMaterials": [
{
"title": "<string>",
"url": "<string>"
}
]
}
]
}
]
}
],
"imageUrl": "<string>"
}
],
"userId": "<string>"
}
'const options = {
method: 'POST',
headers: {
Version: '<version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
locationId: '<string>',
products: [
{
title: '<string>',
description: '<string>',
categories: [
{
title: '<string>',
thumbnailUrl: '<string>',
posts: [
{
title: '<string>',
description: '<string>',
thumbnailUrl: '<string>',
bucketVideoUrl: '<string>',
postMaterials: [{title: '<string>', url: '<string>'}]
}
],
subCategories: [
{
title: '<string>',
thumbnailUrl: '<string>',
posts: [
{
title: '<string>',
description: '<string>',
thumbnailUrl: '<string>',
bucketVideoUrl: '<string>',
postMaterials: [{title: '<string>', url: '<string>'}]
}
]
}
]
}
],
imageUrl: '<string>'
}
],
userId: '<string>'
})
};
fetch('https://services.leadconnectorhq.com/courses/courses-exporter/public/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/courses/courses-exporter/public/import"
payload = {
"locationId": "<string>",
"products": [
{
"title": "<string>",
"description": "<string>",
"categories": [
{
"title": "<string>",
"thumbnailUrl": "<string>",
"posts": [
{
"title": "<string>",
"description": "<string>",
"thumbnailUrl": "<string>",
"bucketVideoUrl": "<string>",
"postMaterials": [
{
"title": "<string>",
"url": "<string>"
}
]
}
],
"subCategories": [
{
"title": "<string>",
"thumbnailUrl": "<string>",
"posts": [
{
"title": "<string>",
"description": "<string>",
"thumbnailUrl": "<string>",
"bucketVideoUrl": "<string>",
"postMaterials": [
{
"title": "<string>",
"url": "<string>"
}
]
}
]
}
]
}
],
"imageUrl": "<string>"
}
],
"userId": "<string>"
}
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
Headers
API Version
Available options:
2021-07-28 Body
application/json
Response
201
Courses imported successfully.
Last modified on March 8, 2026
Was this page helpful?
⌘I
Import Courses
curl --request POST \
--url https://services.leadconnectorhq.com/courses/courses-exporter/public/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "<string>",
"products": [
{
"title": "<string>",
"description": "<string>",
"categories": [
{
"title": "<string>",
"thumbnailUrl": "<string>",
"posts": [
{
"title": "<string>",
"description": "<string>",
"thumbnailUrl": "<string>",
"bucketVideoUrl": "<string>",
"postMaterials": [
{
"title": "<string>",
"url": "<string>"
}
]
}
],
"subCategories": [
{
"title": "<string>",
"thumbnailUrl": "<string>",
"posts": [
{
"title": "<string>",
"description": "<string>",
"thumbnailUrl": "<string>",
"bucketVideoUrl": "<string>",
"postMaterials": [
{
"title": "<string>",
"url": "<string>"
}
]
}
]
}
]
}
],
"imageUrl": "<string>"
}
],
"userId": "<string>"
}
'const options = {
method: 'POST',
headers: {
Version: '<version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
locationId: '<string>',
products: [
{
title: '<string>',
description: '<string>',
categories: [
{
title: '<string>',
thumbnailUrl: '<string>',
posts: [
{
title: '<string>',
description: '<string>',
thumbnailUrl: '<string>',
bucketVideoUrl: '<string>',
postMaterials: [{title: '<string>', url: '<string>'}]
}
],
subCategories: [
{
title: '<string>',
thumbnailUrl: '<string>',
posts: [
{
title: '<string>',
description: '<string>',
thumbnailUrl: '<string>',
bucketVideoUrl: '<string>',
postMaterials: [{title: '<string>', url: '<string>'}]
}
]
}
]
}
],
imageUrl: '<string>'
}
],
userId: '<string>'
})
};
fetch('https://services.leadconnectorhq.com/courses/courses-exporter/public/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/courses/courses-exporter/public/import"
payload = {
"locationId": "<string>",
"products": [
{
"title": "<string>",
"description": "<string>",
"categories": [
{
"title": "<string>",
"thumbnailUrl": "<string>",
"posts": [
{
"title": "<string>",
"description": "<string>",
"thumbnailUrl": "<string>",
"bucketVideoUrl": "<string>",
"postMaterials": [
{
"title": "<string>",
"url": "<string>"
}
]
}
],
"subCategories": [
{
"title": "<string>",
"thumbnailUrl": "<string>",
"posts": [
{
"title": "<string>",
"description": "<string>",
"thumbnailUrl": "<string>",
"bucketVideoUrl": "<string>",
"postMaterials": [
{
"title": "<string>",
"url": "<string>"
}
]
}
]
}
]
}
],
"imageUrl": "<string>"
}
],
"userId": "<string>"
}
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)