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
| Name | Type | Description |
|---|---|---|
| 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 -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"}' result = client.call("brand24", "set_mention_sentiment", {"project_id":123456789,"mention_ids":["7001234530","7001234531"],"sentiment":"positive"}) const result = await cotlet.call('brand24', 'set_mention_sentiment', {"project_id":123456789,"mention_ids":["7001234530","7001234531"],"sentiment":"positive"}); cotlet call brand24 set_mention_sentiment --data '{"project_id":123456789,"mention_ids":["7001234530","7001234531"],"sentiment":"positive"}' Example response
{
"updated": 2,
"sentiment": "positive"
}