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

# Create Connector

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

Connect two items on a board with a line.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Board (`boardId`) | text | Pick a board, or type its Board ID (the part after `/board/` in the board URL). |
| Start Item (`startItemId`) | text | The item the connector starts at. Pick an item, or type its Item ID. Connectors cannot attach to other connectors. |
| End Item (`endItemId`) | text | The item the connector ends at. Pick an item, or type its Item ID. |
| Line Shape (`shape`) | select | Path of the connector. Miro's default is Curved. |
| Caption (`caption`) | text | Optional text in the middle of the connector, up to 200 characters. |
| Line Color (`strokeColor`) | text | Line color as a hex code, for example `#1a1a1a`. |
| Line Style (`strokeStyle`) | select | Pattern of the line. |
| Start Cap (`startStrokeCap`) | select | Decoration at the start of the line. |
| End Cap (`endStrokeCap`) | select | Decoration at the end of the line, for example an arrow. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Connector ID (`id`) | string | - |
| Type (`type`) | string | - |
| Shape (`shape`) | string | - |
| Start Item (`startItem`) | object | - |
| End Item (`endItem`) | object | - |
| Captions (`captions`) | array | - |
| Style (`style`) | object | - |
| Created At (`createdAt`) | string | - |
| Modified At (`modifiedAt`) | string | - |
| Created By (`createdBy`) | object | - |
| Modified By (`modifiedBy`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.miro.core.CreateConnector",
  "label": "Create Connector",
  "description": "Connect two items on a board with a line.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:miro"
  },
  "quota": {
    "manager": "appmixer:miro",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "boardId": {
            "type": "string"
          },
          "startItemId": {
            "type": "string"
          },
          "endItemId": {
            "type": "string"
          },
          "shape": {
            "type": "string",
            "enum": [
              "straight",
              "elbowed",
              "curved"
            ]
          },
          "caption": {
            "type": "string",
            "maxLength": 200
          },
          "strokeColor": {
            "type": "string"
          },
          "strokeStyle": {
            "type": "string",
            "enum": [
              "normal",
              "dotted",
              "dashed"
            ]
          },
          "startStrokeCap": {
            "type": "string",
            "enum": [
              "none",
              "stealth",
              "rounded_stealth",
              "diamond",
              "filled_diamond",
              "oval",
              "filled_oval",
              "arrow",
              "triangle",
              "filled_triangle",
              "erd_one",
              "erd_many",
              "erd_only_one",
              "erd_zero_or_one",
              "erd_one_or_many",
              "erd_zero_or_many"
            ]
          },
          "endStrokeCap": {
            "type": "string",
            "enum": [
              "none",
              "stealth",
              "rounded_stealth",
              "diamond",
              "filled_diamond",
              "oval",
              "filled_oval",
              "arrow",
              "triangle",
              "filled_triangle",
              "erd_one",
              "erd_many",
              "erd_only_one",
              "erd_zero_or_one",
              "erd_one_or_many",
              "erd_zero_or_many"
            ]
          }
        },
        "required": [
          "boardId",
          "startItemId",
          "endItemId"
        ]
      },
      "inspector": {
        "inputs": {
          "boardId": {
            "type": "text",
            "index": 1,
            "label": "Board",
            "tooltip": "Pick a board, or type its Board ID (the part after <code>/board/</code> in the board URL).",
            "source": {
              "url": "/component/appmixer/miro/core/FindBoards?outPort=out",
              "data": {
                "properties": {
                  "isSource": true
                },
                "transform": "./FindBoards#toSelectArray"
              }
            }
          },
          "startItemId": {
            "type": "text",
            "index": 2,
            "label": "Start Item",
            "tooltip": "The item the connector starts at. Pick an item, or type its Item ID. Connectors cannot attach to other connectors.",
            "source": {
              "url": "/component/appmixer/miro/core/ListItems?outPort=out",
              "data": {
                "messages": {
                  "in/boardId": "inputs/in/boardId"
                },
                "properties": {
                  "isSource": true
                },
                "transform": "./ListItems#toSelectArray"
              }
            }
          },
          "endItemId": {
            "type": "text",
            "index": 3,
            "label": "End Item",
            "tooltip": "The item the connector ends at. Pick an item, or type its Item ID.",
            "source": {
              "url": "/component/appmixer/miro/core/ListItems?outPort=out",
              "data": {
                "messages": {
                  "in/boardId": "inputs/in/boardId"
                },
                "properties": {
                  "isSource": true
                },
                "transform": "./ListItems#toSelectArray"
              }
            }
          },
          "shape": {
            "type": "select",
            "index": 4,
            "label": "Line Shape",
            "tooltip": "Path of the connector. Miro's default is Curved.",
            "options": [
              {
                "label": "Straight",
                "value": "straight"
              },
              {
                "label": "Elbowed",
                "value": "elbowed"
              },
              {
                "label": "Curved",
                "value": "curved"
              }
            ]
          },
          "caption": {
            "type": "text",
            "index": 5,
            "label": "Caption",
            "tooltip": "Optional text in the middle of the connector, up to 200 characters."
          },
          "strokeColor": {
            "type": "text",
            "index": 6,
            "label": "Line Color",
            "tooltip": "Line color as a hex code, for example <code>#1a1a1a</code>."
          },
          "strokeStyle": {
            "type": "select",
            "index": 7,
            "label": "Line Style",
            "tooltip": "Pattern of the line.",
            "options": [
              {
                "label": "Normal",
                "value": "normal"
              },
              {
                "label": "Dotted",
                "value": "dotted"
              },
              {
                "label": "Dashed",
                "value": "dashed"
              }
            ]
          },
          "startStrokeCap": {
            "type": "select",
            "index": 8,
            "label": "Start Cap",
            "tooltip": "Decoration at the start of the line.",
            "options": [
              {
                "label": "None",
                "value": "none"
              },
              {
                "label": "Stealth",
                "value": "stealth"
              },
              {
                "label": "Rounded stealth",
                "value": "rounded_stealth"
              },
              {
                "label": "Diamond",
                "value": "diamond"
              },
              {
                "label": "Filled diamond",
                "value": "filled_diamond"
              },
              {
                "label": "Oval",
                "value": "oval"
              },
              {
                "label": "Filled oval",
                "value": "filled_oval"
              },
              {
                "label": "Arrow",
                "value": "arrow"
              },
              {
                "label": "Triangle",
                "value": "triangle"
              },
              {
                "label": "Filled triangle",
                "value": "filled_triangle"
              },
              {
                "label": "Erd one",
                "value": "erd_one"
              },
              {
                "label": "Erd many",
                "value": "erd_many"
              },
              {
                "label": "Erd only one",
                "value": "erd_only_one"
              },
              {
                "label": "Erd zero or one",
                "value": "erd_zero_or_one"
              },
              {
                "label": "Erd one or many",
                "value": "erd_one_or_many"
              },
              {
                "label": "Erd zero or many",
                "value": "erd_zero_or_many"
              }
            ]
          },
          "endStrokeCap": {
            "type": "select",
            "index": 9,
            "label": "End Cap",
            "tooltip": "Decoration at the end of the line, for example an arrow.",
            "options": [
              {
                "label": "None",
                "value": "none"
              },
              {
                "label": "Stealth",
                "value": "stealth"
              },
              {
                "label": "Rounded stealth",
                "value": "rounded_stealth"
              },
              {
                "label": "Diamond",
                "value": "diamond"
              },
              {
                "label": "Filled diamond",
                "value": "filled_diamond"
              },
              {
                "label": "Oval",
                "value": "oval"
              },
              {
                "label": "Filled oval",
                "value": "filled_oval"
              },
              {
                "label": "Arrow",
                "value": "arrow"
              },
              {
                "label": "Triangle",
                "value": "triangle"
              },
              {
                "label": "Filled triangle",
                "value": "filled_triangle"
              },
              {
                "label": "Erd one",
                "value": "erd_one"
              },
              {
                "label": "Erd many",
                "value": "erd_many"
              },
              {
                "label": "Erd only one",
                "value": "erd_only_one"
              },
              {
                "label": "Erd zero or one",
                "value": "erd_zero_or_one"
              },
              {
                "label": "Erd one or many",
                "value": "erd_one_or_many"
              },
              {
                "label": "Erd zero or many",
                "value": "erd_zero_or_many"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Connector ID",
            "example": "3458764517517819100"
          },
          "type": {
            "type": "string",
            "title": "Type",
            "example": "connector"
          },
          "shape": {
            "type": "string",
            "title": "Shape",
            "example": "curved"
          },
          "startItem": {
            "type": "object",
            "title": "Start Item",
            "properties": {
              "id": {
                "type": "string",
                "title": "Start Item.Item ID",
                "example": "3458764517517819000"
              }
            },
            "required": [
              "id"
            ]
          },
          "endItem": {
            "type": "object",
            "title": "End Item",
            "properties": {
              "id": {
                "type": "string",
                "title": "End Item.Item ID",
                "example": "3458764517517819000"
              }
            },
            "required": [
              "id"
            ]
          },
          "captions": {
            "type": "array",
            "title": "Captions",
            "items": {
              "type": "object",
              "properties": {
                "content": {
                  "type": "string"
                },
                "position": {
                  "type": "string"
                }
              }
            },
            "example": [
              {
                "content": "depends on",
                "position": "50%"
              }
            ]
          },
          "style": {
            "type": "object",
            "title": "Style",
            "properties": {
              "strokeColor": {
                "type": "string",
                "title": "Style.Stroke Color",
                "example": "#1a1a1a"
              },
              "strokeStyle": {
                "type": "string",
                "title": "Style.Stroke Style",
                "example": "normal"
              },
              "strokeWidth": {
                "type": "string",
                "title": "Style.Stroke Width",
                "example": "2.0"
              },
              "startStrokeCap": {
                "type": "string",
                "title": "Style.Start Stroke Cap",
                "example": "none"
              },
              "endStrokeCap": {
                "type": "string",
                "title": "Style.End Stroke Cap",
                "example": "stealth"
              }
            },
            "required": []
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "title": "Created At",
            "example": "2026-11-20T09:25:00Z"
          },
          "modifiedAt": {
            "type": "string",
            "format": "date-time",
            "title": "Modified At",
            "example": "2026-11-20T09:25:00Z"
          },
          "createdBy": {
            "type": "object",
            "title": "Created By",
            "properties": {
              "id": {
                "type": "string",
                "title": "Created By.ID",
                "example": "3458764512345678901"
              },
              "type": {
                "type": "string",
                "title": "Created By.Type",
                "example": "user"
              }
            },
            "required": [
              "id"
            ]
          },
          "modifiedBy": {
            "type": "object",
            "title": "Modified By",
            "properties": {
              "id": {
                "type": "string",
                "title": "Modified By.ID",
                "example": "3458764512345678901"
              },
              "type": {
                "type": "string",
                "title": "Modified By.Type",
                "example": "user"
              }
            },
            "required": [
              "id"
            ]
          }
        },
        "required": [
          "id",
          "shape",
          "startItem",
          "endItem"
        ]
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
