> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.todoist.core.CreateLabel

- Component: `appmixer.todoist.core.CreateLabel`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.todoist 1.1.3](https://connectors.appmixer.com/connector/appmixer.todoist/1.1.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.todoist/1.1.3/component/appmixer.todoist.core.CreateLabel>

Create a new personal label.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Name (`name`) | text | The name of the label. |
| Order (`order`) | number | The order of the label. Defines the position of the label among all labels. |
| Color (`color`) | select | The color of the label. |
| Is Favorite (`isFavorite`) | toggle | Whether the label is marked as a favorite. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| ID (`id`) | string | - |
| Name (`name`) | string | - |
| Color (`color`) | string | - |
| Order (`order`) | integer | - |
| Is Favorite (`is_favorite`) | boolean | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.todoist.core.CreateLabel",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Create a new personal label.",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:todoist"
  },
  "quota": {
    "manager": "appmixer:todoist",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "order": {
            "type": "integer"
          },
          "color": {
            "type": "string"
          },
          "isFavorite": {
            "type": "boolean"
          }
        },
        "required": [
          "name"
        ]
      },
      "inspector": {
        "inputs": {
          "name": {
            "type": "text",
            "label": "Name",
            "tooltip": "The name of the label.",
            "index": 1
          },
          "order": {
            "type": "number",
            "label": "Order",
            "tooltip": "The order of the label. Defines the position of the label among all labels.",
            "index": 2
          },
          "color": {
            "type": "select",
            "label": "Color",
            "tooltip": "The color of the label.",
            "index": 3,
            "options": [
              {
                "label": "Berry Red",
                "value": "berry_red"
              },
              {
                "label": "Red",
                "value": "red"
              },
              {
                "label": "Orange",
                "value": "orange"
              },
              {
                "label": "Yellow",
                "value": "yellow"
              },
              {
                "label": "Olive Green",
                "value": "olive_green"
              },
              {
                "label": "Lime Green",
                "value": "lime_green"
              },
              {
                "label": "Green",
                "value": "green"
              },
              {
                "label": "Mint Green",
                "value": "mint_green"
              },
              {
                "label": "Teal",
                "value": "teal"
              },
              {
                "label": "Sky Blue",
                "value": "sky_blue"
              },
              {
                "label": "Light Blue",
                "value": "light_blue"
              },
              {
                "label": "Blue",
                "value": "blue"
              },
              {
                "label": "Grape",
                "value": "grape"
              },
              {
                "label": "Violet",
                "value": "violet"
              },
              {
                "label": "Lavender",
                "value": "lavender"
              },
              {
                "label": "Magenta",
                "value": "magenta"
              },
              {
                "label": "Salmon",
                "value": "salmon"
              },
              {
                "label": "Charcoal",
                "value": "charcoal"
              },
              {
                "label": "Grey",
                "value": "grey"
              },
              {
                "label": "Taupe",
                "value": "taupe"
              }
            ]
          },
          "isFavorite": {
            "type": "toggle",
            "label": "Is Favorite",
            "tooltip": "Whether the label is marked as a favorite.",
            "index": 4
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "ID"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "color": {
            "type": "string",
            "title": "Color"
          },
          "order": {
            "type": "integer",
            "title": "Order"
          },
          "is_favorite": {
            "type": "boolean",
            "title": "Is Favorite"
          }
        },
        "example": {
          "id": "2182738508",
          "name": "Work",
          "color": "blue",
          "order": 1,
          "is_favorite": true
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
