Unpin post
Unpins a published Facebook Page post from the top of its Page. Only Facebook posts can be unpinned; any other platform answers 400 platform_not_supported.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.posts.unpinPost({ path: { postId: 'post_abc123', }, body: { platform: 'facebook', },});console.log(data);{ "success": true, "pinned": false, "platformPostId": "123456789012345_987654321098765", "message": "Post unpinned from the Facebook Page"}Approve or reject a post
Approves or rejects a post saved with `requiresApproval: true` (status `pending_approval`). `approve` schedules the post for its `scheduledFor` and fires the `post.scheduled` webhook. When that time has already passed, the post publishes within a couple of minutes. `reject` returns the post to `draft`. Returns 409 when the post is not `pending_approval`.
List schedules
Returns queue schedules for a profile. Use all=true for all queues, or queueId for a specific one. Defaults to the default queue.