Delete New Post
Delete a scheduled social media post for a specific brand using the schedule_post_id.
Use this API after obtaining schedule_post_id from create-new-post or a related endpoint like get-scheduled-posts. The brand_id identifies the brand context. This endpoint removes the scheduled post across all specified platforms (e.g., Facebook, Instagram, LinkedIn, Twitter, YouTube, Google Business, TikTok, Pinterest).
- Method: POST
- Endpoint:
/api/api-services/v1/brand-service/delete-new-post - Returns: Confirmation of post deletion
Delete New Post
POST https://app.brand2social.com/api/api-services/v1/brand-service/delete-new-post
| Field | Type | Required | Description |
|---|---|---|---|
| Authorization | string (header) | Yes | Bearer token for authentication |
| brand_id | int64 (query) | Yes | ID of the brand |
| schedule_post_id | int64 (query) | Yes | ID of the scheduled post to delete (from create-new-post) |
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/delete-new-post?brand_id=123&schedule_post_id=456' \
--header 'Authorization: Bearer B2S_dummyToken'
Response
{
"status": "SUCCESS",
"http_code": 200,
"message": "Scheduled Event Deleted Successfully",
"data": ""
}Error Response
{
"status": "FAILURE",
"http_code": 400,
"message": "Error in Deleting Scheduled Event",
"data": ""
}