Set mention sentiment

Sets the sentiment of one or more mentions.

PUT https://cotlet.dev/api/v1/brand24/projects/{project_id}/mention-sentiment

write

Changes the sentiment in your project, so the charts and reports count it the new way. It reaches no one and a second call with the old value reverses it, so it does not wait for your OK.

Parameters

Parameters: set_mention_sentiment
NameTypeDescription
project_id integer required integer Project ID from list_projects.
mention_ids string[] required string[] Mention IDs from list_mentions.
sentiment string required string New sentiment: positive, neutral or negative.

Request

cURL
curl -X PUT https://cotlet.dev/api/v1/brand24/projects/123456789/mention-sentiment \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mention_ids":["7001234530","7001234531"],"sentiment":"positive"}'
Python
result = client.call("brand24", "set_mention_sentiment", {"project_id":123456789,"mention_ids":["7001234530","7001234531"],"sentiment":"positive"})
Node.js
const result = await cotlet.call('brand24', 'set_mention_sentiment', {"project_id":123456789,"mention_ids":["7001234530","7001234531"],"sentiment":"positive"});
CLI
cotlet call brand24 set_mention_sentiment --data '{"project_id":123456789,"mention_ids":["7001234530","7001234531"],"sentiment":"positive"}'

Example response

JSON

{
  "updated": 2,
  "sentiment": "positive"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.