POST
/
v1
/
segments
/
cURL
curl --request POST \
  --url https://api.pelanor.io/v1/segments/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dimension_id": "<string>",
  "is_custom": true,
  "manual_relational_filters": [
    {
      "filters": [
        {
          "operator": "Equals",
          "property": {
            "type": "Region"
          },
          "values": [
            "<string>"
          ]
        }
      ]
    }
  ],
  "name": "<string>"
}'
{
  "id": "<string>"
}

When creating a segment, you’ll define a filter condition for this segment. Refer to the Queryable Properties document to see the full list of available properties for filtering.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201 - application/json

The response is of type object.