> 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.teamwork.core.CreateProject

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

Create a project in Teamwork.com

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Name (`name`) | text | - |
| Company (`companyId`) | select | - |
| People (`people`) | multiselect | - |
| Tentative (`tentative`) | toggle | - |
| Custom Fields (`customfields`) | expression | - |

## Output ports

### Port `project`

| Field | Type | Description |
| --- | --- | --- |
| Id (`id`) | - | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.teamwork.core.CreateProject",
  "auth": {
    "service": "appmixer:teamwork"
  },
  "author": "ismael.penalver@teamwork.com",
  "description": "Create a project in Teamwork.com",
  "private": false,
  "version": "1.0.0",
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "companyId": {
            "type": "integer"
          },
          "people": {
            "type": "array"
          },
          "tentative": {
            "type": "boolean"
          },
          "customfields": {
            "type": "object"
          }
        },
        "required": [
          "name",
          "companyId"
        ]
      },
      "inspector": {
        "inputs": {
          "name": {
            "index": 0,
            "type": "text",
            "label": "Name"
          },
          "companyId": {
            "index": 1,
            "type": "select",
            "label": "Company",
            "source": {
              "url": "/component/appmixer/teamwork/core/ListCompanies?outPort=companies",
              "data": {
                "transform": "ListCompanies#toInspector"
              }
            }
          },
          "people": {
            "index": 3,
            "type": "multiselect",
            "label": "People",
            "source": {
              "url": "/component/appmixer/teamwork/core/ListPeople?outPort=people",
              "data": {
                "transform": "ListPeople#toInspector"
              }
            }
          },
          "tentative": {
            "index": 4,
            "type": "toggle",
            "label": "Tentative"
          },
          "customfields": {
            "type": "expression",
            "label": "Custom Fields",
            "index": 5,
            "levels": [
              "AND"
            ],
            "fields": {
              "name": {
                "type": "select",
                "label": "Field",
                "index": 1,
                "source": {
                  "url": "/component/appmixer/teamwork/core/ListCustomFields?outPort=customfields",
                  "data": {
                    "messages": {
                      "in/entity": "project",
                      "in/onlyTextAndNumber": true
                    },
                    "transform": "./ListCustomFields#toInspector"
                  }
                }
              },
              "value": {
                "type": "text",
                "label": "Value",
                "index": 2
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "project",
      "options": [
        {
          "label": "Id",
          "value": "id"
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
