Skip to Content
Publications

Set or undo a reaction or repost on a published channel version

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

POST
/api/projects/{projectId}/publications/{publicationId}/engagement-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
action*string
Value in"like""repost"
active*boolean
requestId*string
Length1 <= length <= 128
expectedExternalId*string
Length1 <= length <= 2048
expectedRevision*|null

Response Body

Response for status 200

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

Was this page helpful?