Posts

Deletes a post by Post id and cancels all schedules. If the post was already published, the published copy is deleted on every network it went to as well. Networks with no delete API (TikTok, Snapchat, Whop, Twitch) and any network that refused are reported in networkDeletes rather than failing the request, so the post is always deleted in Ocoya. A post that was synced from a network rather than published by Ocoya is only removed from Ocoya.

delete/post/{postId}

Request

  • Base URL
    https://www.app.ocoya.com/api/_public/v1
  • Auth
    API key in header X-API-Key

Path parameters

postIdstring required
Example:cmajvvb9q0003ja5vh0538j6r

Ocoya post ID.

Response

Success. Also returned, with an empty networkDeletes, for a post that does not exist.

Example response

{
  "networkDeletes": [
    {
      "provider": "linkedin",
      "providerName": "LinkedIn",
      "channelId": "clh49poxf008x8kov4ncbjty9",
      "status": "deleted",
      "message": "TikTok has no API for deleting a published post. Delete it in the TikTok app."
    }
  ]
}

Changes

    • breaking

      removed the required property // from the response with the status

    • info

      added the required property // to the response with the status

    • info

      api operation id deletePost was added

    • info

      api tag Posts added

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      the response property became required for the status

    • info

      the response property // became required for the status

    • info

      the response property // became required for the status

    • info

      the response property // became required for the status

    • info

      the response property // became required for the status