Skip to Content
Publications

Pin or unpin a published channel version on its platform

Pass the external identifier and revision from the pin details. Reuse the request ID for retries of the same request. Requires publication:dispatch.

POST
/api/projects/{projectId}/publications/{publicationId}/pin-remote

Authorization

headerAuthorizationBearer <Postdot API key>

A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.

Path Parameters

projectId*string
Length1 <= length
publicationId*string
Length1 <= length

Request Body

  1. body
requestId*string
Length1 <= length <= 128
expectedExternalId*string
Length1 <= length <= 2048
expectedRevision*|null
pinned*boolean

Response Body

Response for status 200

application/json
  1. response
state*string
pinned*boolean
Example Request
curl -X POST 'https://postdot.example/api/projects/string/publications/string/pin-remote' \
  -H 'Content-Type: application/json' \
  -d '{
  "requestId": "string",
  "expectedExternalId": "string",
  "expectedRevision": "string",
  "pinned": true
}'
Example Response
{
  "state": "updated",
  "pinned": true
}

Was this page helpful?