> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateSegmentDefinitionInput

> Describes a new segment definition to create.



**Kind**: `input`

## Fields

**`cardDefinitionId`**: `ID!` (required)

Global id of the card definition whose cards the segments pick (`CardDefinition.id`).

---

**`colorHex`**: `String`

Color as `#rgb` or `#rrggbb`. New segments copy it.

---

**`description`**: `String`

Free-text note about the segment definition.

---

**`iconUrl`**: `String`

Absolute URL of the icon.

---

**`id`**: `ID!` (required)

Global id for the new segment definition: base64 of `SegmentDefinition:<raw id>`. The raw id is new, camelCase letters and digits (e.g. `campaigns`).

---

**`name`**: `String!` (required)

Name of the segment definition.



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.