PUT
/
api
/
admin
/
segments
curl --request PUT \
  --url http://localhost:3001/api/admin/segments/ \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<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,
  "workspaceId": "<string>",
  "name": "<string>"
}'
{
  "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,
  "createdAt": 123,
  "definitionUpdatedAt": 123
}

Body

application/json

Response

200
application/json
Default Response

The response is of type object.