---
title: /api/admin/segments
---
export const basePath = "/api/admin/segments"

### Get all segments: `GET /{{{basePath}}}`

### Create segment: `POST /`

### Get segment by id: `GET /:id`

### Update segment by id: `PUT /:id`

### Delete segment by id: `DELETE /:id`

### List strategies that use a specific segment: `GET /:id/strategies`

### List segments applied to a specific strategy: `GET /strategies/:strategyId`

### Replace activation strategy segments `POST /strategies/:strategyId`
