---
title: "Create a new Market Segmentation Segment."
method: POST
path: "/market-segmentation/v1/segments"
tags: ["Market Segmentation"]
---

# Create a new Market Segmentation Segment.

`POST /market-segmentation/v1/segments`

## Headers

- `x-property-id` string, required

## Request body

- SegmentCreateRequestSchema
  - `groupId` string, required — Group ID.
  - `name` string, required — Segment name.
  - `code` string, required — Segment code.
  - `description` string, required — Segment description.
  - `isEnabled` boolean, required — Is Segment enabled?.
  - `ratePlanIds` string[], required — List of Rate Plan IDs.

## Response `201`

Created Market Segmentation Segment.

- SegmentResponseSchema
  - `id` string
  - `groupId` string
  - `name` string
  - `code` string
  - `description` string
  - `isEnabled` boolean
  - `isDefault` boolean
  - `ratePlanIds` string[]
  - `createdAt` string, Y-m-d\TH:i:sP
  - `updatedAt` string, Y-m-d\TH:i:sP, nullable
  - `canEdit` string[]
  - `canDelete` boolean
  - `canDisable` boolean

## Other responses

- `400` — Bad request response.
- `403` — Forbidden response.
- `404` — Not found response.
- `500` — Internal server error.

---

[API](https://skmtc.net/cloudbeds/apis/cloudbeds-api.md) · [All operations](https://skmtc.net/cloudbeds/apis/cloudbeds-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudbeds/cloudbeds-api/revisions/2faa857793e8/schema)
