Skip to main content
POST
/
accounts
/
{id}
/
posts
/
{pid}
/
comments
/
toggle
Enable or disable comments on a post
curl --request POST \
  --url https://api.social-api.ai/v1/accounts/{id}/posts/{pid}/comments/toggle \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": false
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Connected account ID

pid
string
required

Platform post ID

Body

application/json

Toggle payload

enabled
boolean

Enabled enables comments when true, disables them when false.

Example:

false

Response

Setting updated successfully

ok
boolean
Example:

true