OctoPrintClient.printerprofiles
- OctoPrintClient.printerprofiles.list(opts)
Retrieves a list of all configured printer profiles.
- Arguments:
opts (
object()
) – Additional options for the request
- Returns Promise:
A jQuery Promise for the request’s response
- OctoPrintClient.printerprofiles.get(id, opts)
- Arguments:
id (
string()
) – The identifier of the profile to retrieveopts (
object()
) – Additional options for the request
- Returns Promise:
A jQuery Promise for the request’s response
- OctoPrintClient.printerprofiles.add(profile, additional, opts)
Adds a new profile to OctoPrint.
- Arguments:
profile (
string()
) – The data of the profile to addbasedOn (
string()
) – The identifier of the profile to base this profile on (optional)opts (
object()
) – Additional options for the request
- Returns Promise:
A jQuery Promise for the request’s response
- OctoPrintClient.printerprofiles.update(id, profile, opts)
Updates an existing profile in OctoPrint.
- Arguments:
id (
string()
) – The identifier of the profile to updateprofile (
string()
) – The data of the profile to updateopts (
object()
) – Additional options for the request
- Returns Promise:
A jQuery Promise for the request’s response
- OctoPrintClient.printerprofiles.delete(id, opts)
Deletes a profile in OctoPrint.
- Arguments:
id (
string()
) – The identifier of the profile to deleteopts (
object()
) – Additional options for the request
- Returns Promise:
A jQuery Promise for the request’s response
See also
- Printer profile operations
The documentation of the underlying printer profile API.