OctoPrintClient.slicing¶
- OctoPrintClient.slicing.listAllSlicersAndProfiles(opts)¶
 Retrieves a list of all slicers and their available slicing profiles.
- Arguments:¶
 opts (
object()) – Additional options for the request
- Returns Promise:¶
 A jQuery Promise for the request’s response
- OctoPrintClient.slicing.listProfilesForSlicer(slicer, opts)¶
 Retrieves of all slicing profiles for the specified
slicer.- Arguments:¶
 slicer (
string()) – The identifier of the slicer for which to retrieve the profilesopts (
object()) – Additional options for the request
- Returns Promise:¶
 A jQuery Promise for the request’s response
- OctoPrintClient.slicing.getProfileForSlicer(slicer, profileId, opts)¶
 Retrieves the slicing profile with
profileIdfor the specifiedslicer.- Arguments:¶
 slicer (
string()) – The slicer for which to retrieve the profileprofileId (
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.slicing.addProfileForSlicer(slicer, profileId, profile, opts)¶
 Adds the profile with identifier
profileIdto the specifiedslicer, using the providedprofiledata.- Arguments:¶
 slicer (
string()) – The slicer for which to add the profileprofileId (
string()) – The identifier for the profile to addprofile (
object()) – The data of the profile to addopts (
object()) – Additional options for the request
- Returns Promise:¶
 A jQuery Promise for the request’s response
- OctoPrintClient.slicing.updateProfileForSlicer(slicer, profileId, profile, opts)¶
 Updates the profile
profileIdforslicerwith the providedprofiledata.- Arguments:¶
 slicer (
string()) – The slicer for which to update the profileprofileId (
string()) – The identifier for the profile to updateprofile (
object()) – The updated data of the profileopts (
object()) – Additional options for the request
- Returns Promise:¶
 A jQuery Promise for the request’s response
- OctoPrintClient.slicing.deleteProfileForSlicer(slicer, profileId, opts)¶
 Deletes the profile
profileIdforslicer.- Arguments:¶
 opts (
object()) – Additional options for the request
- Returns Promise:¶
 A jQuery Promise for the request’s response
See also
- Slicing API
 The documentation of the underlying slicing API.