segments
Attach a brand to a segment
Attaches the given brand to the segment. The endpoint is idempotent. Both the brand and the segment must belong to the active project. Segment membership is what makes a brand a competitor, so attaching a discovered brand starts tracking it, and attaching an ignored brand revives it and clears its ignored mark. The own brand is implicit in every segment, so attaching it changes nothing.
post/api/v1/brands/{brand}/segments/{segment}
Request
- Base URL: https://pineprompt.com
- URL: https://pineprompt.com/api/v1/brands/{brand}/segments/{segment}
- Auth: HTTP bearer
Path parameters
brandinteger required
Example:555
The numeric ID of the brand.
segmentinteger required
Example:7
The numeric ID of the segment.
Headers
Pineprompt-Project-Idinteger required
The active project's numeric ID.
Response
OK
Example response
{
"id": 555,
"project_id": 42,
"display_name": "Acme Inc.",
"aliases": [
"Acme",
"Acme Co"
],
"domains": [
"acme.com",
"acme.co"
],
"kind": "competitor",
"color": "#008FFB",
"project": {
"id": 42,
"organization_id": 7,
"name": "Acme Marketing",
"brand_id": 555,
"organization": {
"id": 7,
"name": "Acme Inc.",
"created_at": "2026-05-15T09:11:42+00:00",
"updated_at": "2026-05-15T09:11:42+00:00"
},
"created_at": "2026-05-15T09:11:42+00:00",
"updated_at": "2026-05-15T09:11:42+00:00"
},
"created_at": "2026-05-15T09:11:42+00:00",
"updated_at": "2026-05-15T09:11:42+00:00"
}Changes
No recorded changes to this operation across all 1 revision of this API.