Add mention
Adds a public mention to a project by hand, as the Add mentions manually form does.
POST https://cotlet.dev/api/v1/brand24/projects/{project_id}/mentions
write
Brand24 counts the entry in the Analysis dashboard statistics from then on. Only public mentions can be added. It reaches no one and delete_mentions removes the entry, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| project_id integer required | integer | Project ID from list_projects. |
| url string required | string | Entry address: the URL of the post. |
| title string required | string | Entry title, or part of the mention. |
| content string required | string | Content of the mention. |
| category string required | string | Entry category, as the form lists it. |
| sentiment string required | string | Sentiment: positive, neutral or negative. |
| created_at string required | string | Date the entry was created, YYYY-MM-DD. |
Request
curl -X POST https://cotlet.dev/api/v1/brand24/projects/1/mentions \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","title":"title","content":"content","category":"category","sentiment":"sentiment","created_at":"created at"}' result = client.call("brand24", "add_mention", {"project_id":1,"url":"https://example.com","title":"title","content":"content","category":"category","sentiment":"sentiment","created_at":"created at"}) const result = await cotlet.call('brand24', 'add_mention', {"project_id":1,"url":"https://example.com","title":"title","content":"content","category":"category","sentiment":"sentiment","created_at":"created at"}); cotlet call brand24 add_mention --data '{"project_id":1,"url":"https://example.com","title":"title","content":"content","category":"category","sentiment":"sentiment","created_at":"created at"}' Example response
{
"mention_id": "7001234599",
"status": "added",
"sentiment": "neutral"
}