OctoPrint · Schema

PostApiConnectionRequest

Company3D PrintingOpen SourceIoTMaker

Properties

Name Type Description
command string The command to issue, either connect, disconnect or fake_ack.
port string connect command: The port to connect to. If left out either the existing portPreference will be used, or if that is not available OctoPrint will attempt auto detection. Must be part of the available p
baudrate number connect command: The baudrate to connect with. If left out either the existing baudratePreference will be used, or if that is not available OctoPrint will attempt autodetection. Must be part of the av
printerProfile string connect command: The id of the printer profile to use for the connection. If left out the current default printer profile will be used. Must be part of the available printer profiles.
save boolean connect command: Whether to save the supplied connection settings as the new preference. Defaults to false if not set.
autoconnect boolean connect command: Whether to attempt to automatically connect to the printer on server startup. If not set no changes will be made to the current setting.
View JSON Schema on GitHub

JSON Schema

octoprint-post-api-connection-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/octoprint/json-schema/octoprint-post-api-connection-request-schema.json",
  "title": "PostApiConnectionRequest",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/octoprint-openapi-generated.yml#/components/schemas/PostApiConnectionRequest",
  "type": "object",
  "properties": {
    "command": {
      "type": "string",
      "description": "The command to issue, either connect, disconnect or fake_ack."
    },
    "port": {
      "type": "string",
      "description": "connect command: The port to connect to. If left out either the existing portPreference will be used, or if that is not available OctoPrint will attempt auto detection. Must be part of the available ports."
    },
    "baudrate": {
      "type": "number",
      "description": "connect command: The baudrate to connect with. If left out either the existing baudratePreference will be used, or if that is not available OctoPrint will attempt autodetection. Must be part of the available baudrates."
    },
    "printerProfile": {
      "type": "string",
      "description": "connect command: The id of the printer profile to use for the connection. If left out the current default printer profile will be used. Must be part of the available printer profiles."
    },
    "save": {
      "type": "boolean",
      "description": "connect command: Whether to save the supplied connection settings as the new preference. Defaults to false if not set."
    },
    "autoconnect": {
      "type": "boolean",
      "description": "connect command: Whether to attempt to automatically connect to the printer on server startup. If not set no changes will be made to the current setting."
    }
  },
  "required": [
    "command"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/octoprint-post-api-connection-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.