---
title: "Create smart group segment"
method: POST
path: "/users/v1/smart-group-segments"
tags: ["Users:v1:Smart Group Segments"]
---

# Create smart group segment

`POST /users/v1/smart-group-segments`

Create a new segment for smart groups associated with the account. The segment can be assigned a name and a color.

## Request body

- SmartGroupSegmentCreateRequest
  - `name` string, required — The name of the smart group segment
  - `color` string, required — The color hex code for the smart group segment (e.g. #ff5722)

## Response `200`

Successful Response

- APIResponseSmartGroupSegmentCreateResponse
  - `requestId` string
  - `data` SmartGroupSegmentCreateResponse, required
    - `id` integer, required — The unique identifier of the smart group segment
    - `name` string, required — The name of the smart group segment
    - `color` string, required — The color hex code of the smart group segment
    - `sortOrder` integer, required — The sort order of the smart group segment

## Other responses

- `422` — Validation Error

---

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