Zernio
APIFor you
Zernio
APIFor you
API Reference

Posts

List postsGETCreate postPOSTGet postGETUpdate post metadataPOSTUpdate postPUTDelete postDELETEUnpublish postPOSTBulk upload from CSVPOSTRetry failed postPOSTEdit published postPOSTPin postPOSTApprove or reject a postPOSTUnpin postPOST
Dashboard
OverviewPlatformsAPI ReferenceResources
Posts

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.


POST
/v1/posts/{postId}/unpin

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

In: header

Path Parameters

postId*string

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"}
Was this page helpful?

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.

platform*string

Must be facebook. Any other value answers 400 platform_not_supported.

accountId?string

Which Facebook account's copy to change when the post was published to several Facebook accounts. Required in that case.