Skip to main content
PATCH
/
posts
/
{id}
/
sentiment
Update Post Sentiment
curl --request PATCH \
  --url https://api.teleskop.dev/posts/{id}/sentiment \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "projects": [],
  "sentiment": "neutral"
}
'

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

id
string
required

Body

application/json
projects
string[]
required

Arrays of project IDs

sentiment
enum<string>
required

Sentiment value of the post.

Available options:
neutral,
negative,
positive

Response

200 - undefined