curl --location --request POST 'https://app.launchdarkly.com/api/v2/segments//' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "Users in this segment will have access to beta features.",
"key": "new-segment",
"name": "new segment",
"tags": [
[]
],
"unbounded": false
}'
{
"_flags": [
{
"_links": {
"next": {
"href": "/api/v2/endpoint",
"type": "application/json"
},
"self": {
"href": "/api/v2/endpoint",
"type": "application/json"
}
},
"_site": {
"href": "/features/sort.order",
"type": "text/html"
},
"key": "string",
"name": "string"
}
],
"_links": {
"next": {
"href": "/api/v2/endpoint",
"type": "application/json"
},
"self": {
"href": "/api/v2/endpoint",
"type": "application/json"
}
},
"creationDate": 1443652232590,
"description": "Users in this segment can access beta features.",
"excluded": [
"string"
],
"included": [
"string"
],
"key": "beta-testers",
"name": "Beta Testers",
"rules": [
{
"bucketBy": "string",
"clauses": [
{
"_id": "string",
"attribute": "groups",
"negate": true,
"op": "in",
"values": [
"Top Customers"
]
}
],
"weight": 0
}
],
"tags": [
"dev",
"ops"
],
"unbounded": false,
"version": 0
}