Disconnect Social Accounts
Disconnect one or more social media accounts from a brand. Specify the brand_id
and an array of connected_profile_id
values obtained from get-social-profiles
. This removes the association between the brand and the specified social media profiles (e.g., Facebook, Instagram, Twitter, YouTube, LinkedIn, Google My Business), preventing their use in create-new-post
or update-new-post
.
- Method: POST
- Endpoint:
/api/api-services/v1/brand-service/disintegrate-accounts
- Returns: Confirmation of successful account disconnection
Disconnect Social Accounts
POST https://app.brand2social.com/api/api-services/v1/brand-service/disintegrate-accounts
Field | Type | Required | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Authorization | string (header) | Yes | Bearer token for authentication (requires ORG_ADMIN permission) | ||||||||
brand_id | int64 | Yes | ID of the brand | ||||||||
accounts | array of objects | Yes | List of social media accounts to disconnect | ||||||||
|
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/disintegrate-accounts' \
--header 'Authorization: Bearer B2S_dummyToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"brand_id": 123,
"accounts": [
{
"connected_profile_id": 98765
},
{
"connected_profile_id": 98766
}
]
}'
Response
{
"status": "SUCCESS",
"http_code": 200,
"message": "Accounts have been successfully disconnected",
"data": null
}
Error Response
{
"status": "FAILURE",
"http_code": 400,
"message": "Error while disconnecting accounts",
"data": ""
}