---
title: "Issue a connection command"
method: POST
path: "/api/connection"
---

# Issue a connection command

`POST /api/connection`

## Request body

- object
  - `command` string
  - `baudrate` integer
  - `port` string
  - `printerProfile` string
  - `connect` object
    - `hostname` string
    - `port` integer
    - `tls` boolean

## Response `200`

OK

- object
  - `url` string

## Other responses

- `204` — No Content
- `403` — Unauthorized

## Changes

- **2021-09-23** `7ad880a6c0c4` — 8 info
  - added the new optional request property `connect`
  - the response property `text` became required for the status `403`
  - the response property `title` became required for the status `403`
  - the `code` response's property default value `10108` was removed for the status `403`
  - …4 more
- **2021-02-22** `30eda14983ed` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/prusa3d/apis/prusalink-web/changes/api/connection/post.md)

---

[API](https://skmtc.dev/prusa3d/apis/prusalink-web.md) · [All operations](https://skmtc.dev/prusa3d/apis/prusalink-web/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prusa3d/prusalink-web/revisions/ebdce30f1db8/schema)
