Posts
Delete multiple posts
Delete multiple posts
Endpoint
- Method: DELETE
- URL:
https://app.socialk.it/core/api/<workspaceUuid>/posts - Authorization:
Bearer <token>
Body
{
"posts": ['8eb4e98d-2b93-44bd-a664-7a6438eff67b', 'b1b06706-ef95-42b7-8ac8-d648dc9a9d65'],
"trash": false,
"delete_mode": "app_only"
}Body Parameters
| 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
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": {}
}