OverviewPlatformsAPI Reference
Segments

Update a segment

Changes a segment's name, description or filter. A new filter replaces the old one completely.


PATCH
/v1/segments/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

An API key from POST /v1/api-keys. Keys start with ref_.

In: header

Path Parameters

id*string

The segment's id (seg_...).

Length1 <= length

Request Body

application/json

Fields you leave out stay as they are.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/segments/seg_abc123" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "description": "string",  "filter": {    "platforms": [      "bluesky"    ],    "tags": [      "string"    ],    "minFollowers": 0,    "maxFollowers": 0,    "minMentions": 1,    "minNegative": 1,    "intents": [      "string"    ],    "keywordKinds": [      "brand"    ],    "neverKeywordKinds": [      "brand"    ],    "notPlatforms": [      "bluesky"    ],    "notTags": [      "string"    ],    "notIntents": [      "string"    ],    "newSinceDays": 1,    "linkHosts": [      "string"    ],    "muted": true,    "stages": [      "not_contacted"    ],    "automated": true,    "ownerIds": [      "string"    ]  },  "count": 0,  "createdAt": "string",  "updatedAt": "string"}
Was this page helpful?