Skip to main content
CSVVersion: v3

Set Accounts

POST/social-media-posting/{locationId}/set-accounts

Set social media accounts for a CSV import to publish posts to

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:socialplanner/csv.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

locationIdstringrequired

Location ID (also known as Sub-Account ID) for the business location.

Example:ve9EPM428h8vShlRW1KT

Body

accountIdsstring[]required

Account Ids

Example:["aF3KhyL8JIuBwzK3m7Ly_iVrVJ2uoXNF0wzcBzgl5_12554616564525983496"]
filePathstringrequired

File path

Example:omaDY3RbWtTP511e/social-import/d23d68c2-82c0-1db6e2.csv
rowsCountnumberrequired

Entries Count. rowsCount must be between 1 and number of posts in CSV

Example:1
fileNamestringrequired

Name of file

Example:test.csv
approverstring

Approver User Id

Example:o6241QsiRwUIJHyjuhos
userIdstringrequired

User ID

Example:ve9EPM428h8vShlRW1KT
csvFileTypestring

CSV file type - determines the format of the CSV file being imported

Available optionsbasicadvance
Example:basic

Response

Successful response

successbooleanrequired

Success or Failure

Example:true
statusCodenumberrequired

Status Code

Example:201
messagestringrequired

Message

Example:Accounts Set Successfully
resultsobject

Requested Results