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

- Component: `appmixer.teamwork.core.CreateProjectFromTemplate`
- 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.CreateProjectFromTemplate>

Create a project from a template in Teamwork

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Project Template (`templateId`) | select | - |
| Project Name (`cloneProjectName`) | text | - |
| Company (`companyId`) | select | - |

## Output ports

### Port `project`

| Field | Type | Description |
| --- | --- | --- |
| Created Project (`project`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.teamwork.core.CreateProjectFromTemplate",
  "auth": {
    "service": "appmixer:teamwork"
  },
  "author": "conor.quin@teamwork.com",
  "description": "Create a project from a template in Teamwork",
  "private": false,
  "version": "1.0.0",
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "templateId": {
            "type": "integer",
            "description": "The template ID to use (used in URL path)"
          },
          "cloneProjectName": {
            "type": "string",
            "description": "Name for the new project"
          },
          "companyId": {
            "type": "integer",
            "description": "The company ID to use"
          }
        },
        "required": [
          "templateId"
        ]
      },
      "inspector": {
        "inputs": {
          "templateId": {
            "index": 1,
            "type": "select",
            "label": "Project Template",
            "source": {
              "url": "/component/appmixer/teamwork/core/ListProjectTemplates?outPort=projects",
              "data": {
                "transform": "ListProjectTemplates#toInspector"
              }
            }
          },
          "cloneProjectName": {
            "index": 2,
            "type": "text",
            "label": "Project Name"
          },
          "companyId": {
            "index": 3,
            "type": "select",
            "label": "Company",
            "source": {
              "url": "/component/appmixer/teamwork/core/ListCompanies?outPort=companies",
              "data": {
                "transform": "ListCompanies#toInspector"
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "project",
      "options": [
        {
          "label": "Created Project",
          "value": "project",
          "schema": {
            "type": "object",
            "properties": {
              "projectId": {
                "type": "number",
                "title": "Project ID"
              }
            }
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
