Delete a post
Method: DELETE
URL: https://example.com/<MIXPOST_CORE_PATH>/api/<workspaceUuid>/posts/{postUuid}
Authorization: Bearer <token>
Body:
{
"trash": false,
"delete_mode": "app_only"
}
Key | Format | Required | Description |
---|---|---|---|
trash | boolean | Set true to move the item to trash; set false to delete it permanently. Default: false . | |
delete_mode | string | - app_only (default) - delete post from application only. - app_and_social - delete post from application and related social platforms - social_only - delete post from social platforms only |
Response:
- 200
- 401
- 403
- 404
Permanently deleted (delete_mode
= app_only
):
{
"deleted": true,
"deleted_from_app": true
}
Moved to trash (delete_mode
= app_only
):
{
"to_trash": true,
"deleted_from_app": true
}
Deleted from social platforms (delete_mode
= social_only
):
{
"deleted": true,
"deleting_from_social_platforms": "in_queue"
}
Permanently deleted from application and from social platforms (delete_mode
= app_and_social
):
{
"deleted": true,
"deleting_from_social_platforms": "in_queue",
"deleted_from_app": true
}
Moved to trash and deleted from social platforms (delete_mode
= app_and_social
):
{
"to_trash": true,
"deleting_from_social_platforms": "in_queue",
"deleted_from_app": true
}
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}
{
"message": "Workspace not found."
}