Skip to main content
POST
/
v1
/
materializedSegments
Create MaterializedSegment
curl --request POST \
  --url https://flags.eu.confidence.dev/v1/materializedSegments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "materializedSegment": {
    "displayName": "<string>",
    "createTime": {},
    "updateTime": {},
    "creator": "<string>",
    "updater": "<string>",
    "name": "<string>",
    "labels": [
      {}
    ],
    "owner": "<string>"
  },
  "materializedSegmentId": "<string>"
}
'
{
  "displayName": "<string>",
  "createTime": {},
  "updateTime": {},
  "creator": "<string>",
  "updater": "<string>",
  "name": "<string>",
  "labels": [
    {}
  ],
  "owner": "<string>"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

materializedSegmentId
string

The id of the materialization which would be the the last segment of the resource name such as 'materializedSegments/{materialized_segment_id}'. If none is specified a server generated one will be used.

Body

application/json

Create a new materialized segment.

materializedSegment
object
required

The properties of the materialization to be created.

materializedSegmentId
string

The id of the materialization which would be the the last segment of the resource name such as 'materializedSegments/{materialized_segment_id}'. If none is specified a server generated one will be used.

Response

200 - application/json

OK

A slice of the entity population that has is materialized as individual entity identifiers stored in a database. Useful for segmenting a large list of entities that cannot otherwise be easily targeted through evaluation context.

displayName
string
required

A human-friendly name for the segment.

createTime
object
required

Time when the segment was first created.

updateTime
object
required

Time when the segment was last updated.

creator
string
required

Reference to the identity that created this segment.

updater
string
required

Reference to the identity that last updated this segment.

name
string

The resource name of the materialized segment. For example: materializedSegment/0smva5nxuhv4yts6paxt

labels
object[]

General labels for this resource.

owner
string

The owner of the resource. If not set will default to the creator.