octoprint-open-api/openapi/components/requestBodies/PrinterSdCommand.yaml
2020-10-27 12:34:47 +01:00

18 lines
1.1 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

content:
application/json:
schema:
type: object
description: >-
Printer SD card command
properties:
command:
type: string
description: >-
- `init`: Initializes the printers SD card, making it available for use. This also includes an initial retrieval of the list of files currently stored on the SD card, so after issuing that command a retrieval of the files on SD card will return a successful result.
- `refresh`: Refreshes the list of files stored on the printers SD card. Will return a 409 Conflict if the card has not been initialized yet (see the init command and SD state).
- `release`: Releases the SD card from the printer. The reverse operation to init. After issuing this command, the SD card wont be available anymore, hence and operations targeting files stored on it will fail. Will return a 409 Conflict if the card has not been initialized yet (see the init command and SD state).
enum:
- init
- refresh
- release