OnlySocial
  1. Posts
OnlySocial
  • 🐶 OnlySocial API Walk through
  • Only Social
    • Accounts
      • List Accounts
      • Get an account
    • Media
      • List media files
      • Get a media file
      • Upload a media file
      • Delete a media file
    • Tags
      • List Tags
      • Get a tag
      • Create a tag
      • Delete a tag
      • Update a tag
    • Posts
      • List posts
        GET
      • Get a post
        GET
      • Create a post
        POST
      • Delete a post
        DELETE
      • Delete multiple post
        DELETE
      • Schedule a post
        POST
      • Add a post to Queue
        POST
      • Update a post
        PUT
  1. Posts

Delete a post

DELETE
https://app.onlysocial.io/os/api/{workspaceUuid}/posts/{postUuid}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
workspaceUuid
string 
required
Example:
<workspaceUuid>
postUuid
string 
required
Example:
{postUuid}
Body Params application/json
trash
boolean 
required
Set true to move the item to trash; set false to delete it permanently. Default: false.
Example
{
  "trash": false
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request DELETE 'https://app.onlysocial.io/os/api/<workspaceUuid>/posts/{postUuid}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "trash": false
}'

Responses

🟢200Success
application/json
Body
object {0}
Examples
{
    "deleted": true
}
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-06-28 15:51:11
Previous
Create a post
Next
Delete multiple post
Built with