> 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.vapi.core.CreateSquad

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

Create a new squad in Vapi.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Name (`name`) | text | Name of the squad |
| Members (`members`) | multiselect | Select assistants to add as members of the squad. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Squad ID (`id`) | string | - |
| Organization ID (`orgId`) | string | - |
| Squad Name (`name`) | string | - |
| Created At (`createdAt`) | string | - |
| Updated At (`updatedAt`) | string | - |
| Members (`members`) | array | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.vapi.core.CreateSquad",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Create a new squad in Vapi.",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:vapi"
  },
  "quota": {
    "manager": "appmixer:vapi",
    "resources": "vapi.api",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "members": {
            "type": [
              "array",
              "string"
            ]
          }
        },
        "required": [
          "name",
          "members"
        ]
      },
      "inspector": {
        "inputs": {
          "name": {
            "type": "text",
            "index": 1,
            "label": "Name",
            "tooltip": "Name of the squad"
          },
          "members": {
            "type": "multiselect",
            "index": 2,
            "label": "Members",
            "tooltip": "Select assistants to add as members of the squad.",
            "source": {
              "url": "/component/appmixer/vapi/core/ListAssistants?outPort=out"
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Squad ID",
          "value": "id",
          "schema": {
            "type": "string",
            "example": "abc123def456"
          }
        },
        {
          "label": "Organization ID",
          "value": "orgId",
          "schema": {
            "type": "string",
            "example": "abc123def456"
          }
        },
        {
          "label": "Squad Name",
          "value": "name",
          "schema": {
            "type": "string",
            "example": "My Resource"
          }
        },
        {
          "label": "Created At",
          "value": "createdAt",
          "schema": {
            "type": "string",
            "example": "2024-01-15T10:30:00Z"
          }
        },
        {
          "label": "Updated At",
          "value": "updatedAt",
          "schema": {
            "type": "string",
            "example": "2024-01-16T14:20:00Z"
          }
        },
        {
          "label": "Members",
          "value": "members",
          "schema": {
            "type": "array",
            "example": []
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
