curl --request GET \
--url http://localhost:3001/api/admin/segments/
{
"segments": [
{
"id": "<string>",
"workspaceId": "<string>",
"name": "<string>",
"definition": {
"entryNode": {
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
},
"nodes": [
{
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
}
]
},
"subscriptionGroupId": "<string>",
"updatedAt": 123,
"lastRecomputed": 123,
"resourceType": "Declarative",
"status": "NotStarted"
}
]
}
Get all segments.
curl --request GET \
--url http://localhost:3001/api/admin/segments/
{
"segments": [
{
"id": "<string>",
"workspaceId": "<string>",
"name": "<string>",
"definition": {
"entryNode": {
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
},
"nodes": [
{
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
}
]
},
"subscriptionGroupId": "<string>",
"updatedAt": 123,
"lastRecomputed": 123,
"resourceType": "Declarative",
"status": "NotStarted"
}
]
}
Default Response
The response is of type object
.