Class: Fitting

Fitting

An api adapter that provides functions for removing a particular fitting of a character, specified by id via functions in the fittings ESI endpoints.

You should not usually instantiate this directly as its constructor requires an internal api instance.


new Fitting(fittings, fittingId)

Create a new Fitting represented as fittingId from the given fittings.

Parameters:
Name Type Description
fittings Fittings

The fittings owning the fit

fittingId Number

The fitting id that is used for all requests

Methods


del()

Delete a fitting from a character.

This makes an HTTP DELETE request to /characters/{character_id}/fittings/{fitting_id}/. The route version is v1.

On success, this resolves to an empty object.

This function must be used with an SSO token that has the following scopes:

  • esi-fittings.write_fittings.v1
Returns:

A Promise that resolves to an empty object.

Type
Promise.<Object>