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 profiles

  • opts (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 specified slicer.

Arguments:
  • slicer (string()) – The slicer for which to retrieve the profile

  • profileId (string()) – The identifier of the profile to retrieve

  • opts (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 specified slicer, using the provided profile data.

Arguments:
  • slicer (string()) – The slicer for which to add the profile

  • profileId (string()) – The identifier for the profile to add

  • profile (object()) – The data of the profile to add

  • opts (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 for slicer with the provided profile data.

Arguments:
  • slicer (string()) – The slicer for which to update the profile

  • profileId (string()) – The identifier for the profile to update

  • profile (object()) – The updated data of the profile

  • opts (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 for slicer.

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.