> 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.CreateSection

- Component: `appmixer.todoist.core.CreateSection`
- 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.CreateSection>

Create a new section in a project.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Name (`name`) | text | The name of the section. |
| Project (`projectId`) | select | The project to add the section to. |
| Order (`order`) | number | The order of the section. Defines the position of the section among other sections. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| ID (`id`) | string | - |
| Project ID (`project_id`) | string | - |
| Order (`order`) | number | - |
| Name (`name`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.todoist.core.CreateSection",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Create a new section in a project.",
  "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"
          },
          "projectId": {
            "type": "string"
          },
          "order": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "projectId"
        ]
      },
      "inspector": {
        "inputs": {
          "name": {
            "type": "text",
            "label": "Name",
            "tooltip": "The name of the section.",
            "index": 1
          },
          "projectId": {
            "type": "select",
            "label": "Project",
            "tooltip": "The project to add the section to.",
            "index": 2,
            "source": {
              "url": "/component/appmixer/todoist/core/ListProjectsSelect?outPort=out",
              "data": {
                "transform": "./transformers#projectsToSelectArray"
              }
            }
          },
          "order": {
            "type": "number",
            "label": "Order",
            "tooltip": "The order of the section. Defines the position of the section among other sections.",
            "index": 3
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "ID"
          },
          "project_id": {
            "type": "string",
            "title": "Project ID"
          },
          "order": {
            "type": "number",
            "title": "Order"
          },
          "name": {
            "type": "string",
            "title": "Name"
          }
        },
        "example": {
          "id": "212068467",
          "project_id": "2365437921",
          "order": 1,
          "name": "To Do"
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
