Delete multiple post
Method: DELETE
URL: https://example.com/<MIXPOST_CORE_PATH>/api/<workspaceUuid>/posts
Authorization: Bearer <token>
Body:
{
"posts": ['8eb4e98d-2b93-44bd-a664-7a6438eff67b', 'b1b06706-ef95-42b7-8ac8-d648dc9a9d65'],
"trash": false,
"delete_mode": "app_only"
}
Key | Format | Required | Description |
---|---|---|---|
posts | array | required | Array of posts Uuids |
posts.* | string | required | Post Uuid |
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
- 422
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."
}
{
"message": "Validation errors",
"errors": {}
}