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
}
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 . |
Response:
- 200
- 401
- 403
- 404
- 422
Permanently deleted:
{
"deleted": true
}
Moved to trash:
{
"to_trash": true
}
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}
{
"message": "Workspace not found."
}
{
"message": "Validation errors",
"errors": {}
}