POST
/
api
/
v1
/
namespaces
/
{namespaceKey}
/
segments
/
{segmentKey}
/
constraints

Authorizations

Authorization
string
header
required

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

Path Parameters

namespaceKey
string
required
segmentKey
string
required

Body

application/json
operator
string
required
property
string
required
type
enum<string>
required

The default is UNKNOWN_COMPARISON_TYPE

Available options:
UNKNOWN_COMPARISON_TYPE,
STRING_COMPARISON_TYPE,
NUMBER_COMPARISON_TYPE,
BOOLEAN_COMPARISON_TYPE,
DATETIME_COMPARISON_TYPE
description
string
value
string

Response

200 - application/json
createdAt
string
required
description
string
required
id
string
required
namespaceKey
string
required
operator
string
required
property
string
required
segmentKey
string
required
type
enum<string>
required

The default is UNKNOWN_COMPARISON_TYPE

Available options:
UNKNOWN_COMPARISON_TYPE,
STRING_COMPARISON_TYPE,
NUMBER_COMPARISON_TYPE,
BOOLEAN_COMPARISON_TYPE,
DATETIME_COMPARISON_TYPE
updatedAt
string
required
value
string
required