Set Accounts for CSV
Set social media accounts for a CSV import to publish posts to.
POST
/
social-media-posting
/
{locationId}
/
set-accounts
Set Accounts for CSV
curl --request POST \
--url https://services.leadconnectorhq.com/social-media-posting/{locationId}/set-accounts \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"csvId": "<string>",
"accountIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
Version: '<version>',
'Content-Type': 'application/json'
},
body: JSON.stringify({csvId: '<string>', accountIds: ['<string>']})
};
fetch('https://services.leadconnectorhq.com/social-media-posting/{locationId}/set-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/social-media-posting/{locationId}/set-accounts"
payload = {
"csvId": "<string>",
"accountIds": ["<string>"]
}
headers = {
"Authorization": "<authorization>",
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Last modified on March 8, 2026
Was this page helpful?
⌘I
Set Accounts for CSV
curl --request POST \
--url https://services.leadconnectorhq.com/social-media-posting/{locationId}/set-accounts \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"csvId": "<string>",
"accountIds": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
Version: '<version>',
'Content-Type': 'application/json'
},
body: JSON.stringify({csvId: '<string>', accountIds: ['<string>']})
};
fetch('https://services.leadconnectorhq.com/social-media-posting/{locationId}/set-accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/social-media-posting/{locationId}/set-accounts"
payload = {
"csvId": "<string>",
"accountIds": ["<string>"]
}
headers = {
"Authorization": "<authorization>",
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)