MrDraw/docs/jsclientlib/printerprofiles.rst

49 lines
1.9 KiB
ReStructuredText
Raw Normal View History

2016-08-26 15:47:38 +00:00
.. sec-jsclientlib-printerprofiles:
:mod:`OctoPrint.printerprofiles`
--------------------------------
.. js:function:: OctoPrint.printerprofiles.list(opts)
2016-08-26 15:47:38 +00:00
Retrieves a list of all configured printer profiles.
2016-08-26 15:47:38 +00:00
:param object opts: Additional options for the request
:returns Promise: A `jQuery Promise <http://api.jquery.com/Types/#Promise>`_ for the request's response
2016-08-26 15:47:38 +00:00
.. js:function:: OctoPrint.printerprofiles.get(id, opts)
:param string id: The identifier of the profile to retrieve
:param object opts: Additional options for the request
:returns Promise: A `jQuery Promise <http://api.jquery.com/Types/#Promise>`_ for the request's response
2016-08-26 15:47:38 +00:00
.. js:function:: OctoPrint.printerprofiles.add(profile, additional, opts)
Adds a new profile to OctoPrint.
:param string profile: The data of the profile to add
:param string basedOn: The identifier of the profile to base this profile on (optional)
:param object opts: Additional options for the request
:returns Promise: A `jQuery Promise <http://api.jquery.com/Types/#Promise>`_ for the request's response
.. js:function:: OctoPrint.printerprofiles.update(id, profile, opts)
Updates an existing profile in OctoPrint.
:param string id: The identifier of the profile to update
:param string profile: The data of the profile to update
:param object opts: Additional options for the request
:returns Promise: A `jQuery Promise <http://api.jquery.com/Types/#Promise>`_ for the request's response
2016-08-26 15:47:38 +00:00
.. js:function:: OctoPrint.printerprofiles.delete(id, opts)
Deletes a profile in OctoPrint.
:param string id: The identifier of the profile to delete
:param object opts: Additional options for the request
:returns Promise: A `jQuery Promise <http://api.jquery.com/Types/#Promise>`_ for the request's response
.. seealso::
:ref:`Printer profile operations <sec-api-printerprofiles>`
The documentation of the underlying printer profile API.