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
header
AuthorizationBearer <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.
projectId*stringLength
1 <= lengthpublicationId*stringLength
1 <= length- body
action*stringValue in
"like""repost"active*booleanrequestId*stringLength
1 <= length <= 128expectedExternalId*stringLength
1 <= length <= 2048expectedRevision*|nullResponse for status 200
application/json- response
state*stringactive*booleancurl -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
}