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
profileId
for 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
profileId
to the specifiedslicer
, using the providedprofile
data.- 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
profileId
forslicer
with the providedprofile
data.- 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
profileId
forslicer
.- 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.