Skip to main content
PATCH
Update an account's permissions

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Path Parameters

id
string
required

Account ID

Body

application/json

New permissions

permissions
string[] | null

Permissions replaces the account's permissions and is required. Send null to give the account every permission, including ones added later. An empty list is rejected. Removing a permission immediately deletes the comments, messages, analytics and posts not published through SocialAPI that it covers; posts published through SocialAPI are kept. Valid values: posts.read, posts.write, comments.read, comments.write, messages.read, messages.write, reviews.read, reviews.write, analytics.read.

Example:

Response

OK

bio
string

[optional] Profile biography or description

brand_id
string

[always] SocialAPI brand ID this account belongs to

connection_type
enum<string>

[optional] "profile" for a LinkedIn personal profile connected with connection_type "profile" (beta). Absent for every other account

Available options:
profile
Example:

"profile"

effective_permissions
string[]

[always] The permissions this account can use right now: the requested permissions the platform supports, minus any the platform did not grant or has since refused. Uses the same names as permissions. An empty list when none apply

id
string

[always]

Example:

"acc_01HZ9X3Q4R5M6N7P8V2K0W1J"

login_id
string

[optional] Login id shared by accounts connected in the same authorization (e.g. facebook)

metadata
object

[optional] Platform-specific keys for this account

name
string

[always] Display name of the account or page

Example:

"Acme Corp"

page_name
string

[optional] Name of the single active page bound to this account; set only when exactly one page is active (e.g. facebook), so clients can label the tile with the page instead of the login identity

permissions
string[]

[always] The permissions requested for this account: one or more of posts.read, posts.write, comments.read, comments.write, messages.read, messages.write, reviews.read, reviews.write, analytics.read. null means every permission, including ones added later

platform
string

[always]

Example:

"instagram"

profile_picture_url
string

[optional] Profile picture URL

reconnect_reason
string

[optional] Human-readable reason; only set when Status == "reconnect_required"

status
string

[always] One of: active, reconnect_required

Example:

"active"

username
string

[always] May equal Name on platforms without a distinct handle

Example:

"acmecorp"