mirror of
https://github.com/gosticks/octoprint-open-api.git
synced 2025-10-16 11:45:38 +00:00
32 lines
843 B
YAML
32 lines
843 B
YAML
summary: Add a new printer profile
|
|
operationId: addNewPrinterProfile
|
|
description: >-
|
|
Adds a new printer profile based on either the current default profile or the profile identified in basedOn.
|
|
The provided profile data will be merged with the profile data from the base profile.
|
|
tags:
|
|
- Profiles
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
required:
|
|
- profile
|
|
properties:
|
|
basedOn:
|
|
type: string
|
|
profile:
|
|
$ref: ../../components/schemas/printer/Profile.yaml
|
|
required: false
|
|
responses:
|
|
"200":
|
|
description: >-
|
|
Profile saved.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
profile:
|
|
$ref: ../../components/schemas/printer/Profile.yaml
|