cURL
curl --request PUT \ --url http://localhost/api/admin/segments/ \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "workspaceId": "<string>", "name": "<string>", "id": "<string>", "subscriptionGroupId": "<string>", "updatedAt": 123, "lastRecomputed": 123, "recomputePending": true } '
{ "id": "<string>", "workspaceId": "<string>", "name": "<string>", "definition": { "entryNode": { "id": "<string>", "path": "<string>", "operator": { "windowSeconds": 123 } }, "nodes": [ { "id": "<string>", "path": "<string>", "operator": { "windowSeconds": 123 } } ] }, "updatedAt": 123, "recomputePending": true, "createdAt": 123, "definitionUpdatedAt": 123, "subscriptionGroupId": "<string>", "lastRecomputed": 123 }
Create or update a user segment.
Documentation IndexFetch the complete documentation index at: https://docs.tranthor.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.tranthor.com/llms.txt
Use this file to discover all available pages before exploring further.
Show child attributes
Default Response