Create a segment

Creates a new segment.

POST/v3/segments
JWT
segment:write

Request Body Schema

PropertyTypeDescriptionConstraints
name*stringName of the segment.min: 1, max: 256
resource*stringName of the resource.min: 1
filters*arrayFilter for the segment.items: object
property*stringName of the property.min: 1, max: 256
operator*stringName of the operator.min: 1, max: 256
value*stringValue of the property.min: 1, max: 256

Request Example

{
  "name": "string",
  "resource": "string",
  "filters": [
    {
      "property": "string",
      "operator": "string",
      "value": "string"
    }
  ]
}

Responses

201 Created
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "resource": "string",
  "filters": [
    {
      "property": "string",
      "operator": "string",
      "value": "string"
    }
  ]
}