---
title: "connector.setWaypoints: Connector bends — Board kit command — Kition"
description: "Replaces a connector's bend points; an empty list returns it to an automatic route."
canonical: "https://developer.kition.ai/docs/kits/board/commands/connector.setWaypoints"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/board/commands/connector.setWaypoints](https://developer.kition.ai/docs/kits/board/commands/connector.setWaypoints)

# connector.setWaypoints

**Connector bends.** Replaces a connector's bend points; an empty list returns it to an automatic route.

- Kit: Board 0.1.0 (.kboard); reference: [Board kit commands](https://developer.kition.ai/docs/kits/board.md)
- Changes the document: yes
- Acts on: `id` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The connector |
| `waypoints` | `number[][]` | yes | Bends in path order; empty for an automatic route |

## Call through board_run

```text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "connector.setWaypoints", "params": { "id": <string>, "waypoints": <number[][]> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. board_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "The connector",
      "type": "string",
      "x-khp-types": [
        "Element"
      ]
    },
    "waypoints": {
      "description": "Bends in path order; empty for an automatic route",
      "items": {
        "items": {
          "description": "Coordinate",
          "maximum": 1000000,
          "minimum": -1000000,
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    }
  },
  "required": [
    "id",
    "waypoints"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/board-darwin-arm64@0.1.0 and the kit itself (board_commands through @kition/cli@0.1.1, built from KitionAI/kition-board@e78c190).
