Download OpenAPI specification:Download
REST API for Spoolman.
The API is served on the path `/api/v1/`.
Some endpoints also serve a websocket on the same path. The websocket is used to listen for changes to the data
that the endpoint serves. The websocket messages are JSON objects. Additionally, there is a root-level websocket
endpoint that listens for changes to any data in the database.
{- "version": "0.7.0",
- "debug_mode": false,
- "automatic_backups": true,
- "data_dir": "/home/app/.local/share/spoolman",
- "logs_dir": "/home/app/.local/share/spoolman",
- "backups_dir": "/home/app/.local/share/spoolman/backups",
- "db_type": "sqlite",
- "git_commit": "a1b2c3d",
- "build_date": "2021-01-01T00:00:00Z"
}
Get a list of filaments that matches the search query. A websocket is served on the same path to listen for updates to any filament, or added or deleted filaments. See the HTTP Response code 299 for the content of the websocket messages.
Vendor Name (string) or Vendor Name (null) (Vendor Name) Deprecated See vendor.name. | |
Vendor ID (string) or Vendor ID (null) (Vendor ID) Deprecated See vendor.id. | |
Vendor Name (string) or Vendor Name (null) (Vendor Name) Partial case-insensitive search term for the filament vendor name. Separate multiple terms with a comma. Specify an empty string to match filaments with no vendor name. Surround a term with quotes to search for the exact term. | |
Vendor ID (string) or Vendor ID (null) (Vendor ID) Examples: vendor.id=1 vendor.id=1,2 Match an exact vendor ID. Separate multiple IDs with a comma. Specify -1 to match filaments with no vendor. | |
Filament Name (string) or Filament Name (null) (Filament Name) Partial case-insensitive search term for the filament name. Separate multiple terms with a comma. Specify an empty string to match filaments with no name. Surround a term with quotes to search for the exact term. | |
Filament Material (string) or Filament Material (null) (Filament Material) Partial case-insensitive search term for the filament material. Separate multiple terms with a comma. Specify an empty string to match filaments with no material. Surround a term with quotes to search for the exact term. | |
Filament Article Number (string) or Filament Article Number (null) (Filament Article Number) Partial case-insensitive search term for the filament article number. Separate multiple terms with a comma. Specify an empty string to match filaments with no article number. Surround a term with quotes to search for the exact term. | |
Filament Color (string) or Filament Color (null) (Filament Color) Match filament by similar color. Slow operation! | |
color_similarity_threshold | number (Color Similarity Threshold) Default: 20 Example: color_similarity_threshold=20 The similarity threshold for color matching. A value between 0.0-100.0, where 0 means match only exactly the same color. |
External Id (string) or External Id (null) (External Id) Example: external_id=polymaker_pla_polysonicblack_1000_175 Find filaments imported by the given external ID. Separate multiple IDs with a comma. Specify empty string to match filaments with no external ID. Surround a term with quotes to search for the exact term. | |
Sort (string) or Sort (null) (Sort) Example: sort=vendor.name:asc,spool_weight:desc Sort the results by the given field. Should be a comma-separate string with "field:direction" items. | |
Limit (integer) or Limit (null) (Limit) Maximum number of items in the response. | |
offset | integer (Offset) Default: 0 Offset in the full result set if a limit is set. |
[- {
- "id": 0,
- "registered": "string",
- "name": "PolyTerra™ Charcoal Black",
- "vendor": {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
]
Add a new filament to the database.
Name (string) or Name (null) (Name) Filament name, to distinguish this filament type among others from the same vendor.Should contain its color for example. | |
Vendor Id (integer) or Vendor Id (null) (Vendor Id) The ID of the vendor of this filament type. | |
Material (string) or Material (null) (Material) The material of this filament, e.g. PLA. | |
Price (number) or Price (null) (Price) The price of this filament in the system configured currency. | |
density required | number (Density) > 0 The density of this filament in g/cm3. |
diameter required | number (Diameter) > 0 The diameter of this filament in mm. |
Weight (number) or Weight (null) (Weight) The weight of the filament in a full spool, in grams. (net weight) | |
Spool Weight (number) or Spool Weight (null) (Spool Weight) The empty spool weight, in grams. | |
Article Number (string) or Article Number (null) (Article Number) Vendor article number, e.g. EAN, QR code, etc. | |
Comment (string) or Comment (null) (Comment) Free text comment about this filament type. | |
Settings Extruder Temp (integer) or Settings Extruder Temp (null) (Settings Extruder Temp) Overridden extruder temperature, in °C. | |
Settings Bed Temp (integer) or Settings Bed Temp (null) (Settings Bed Temp) Overridden bed temperature, in °C. | |
Color Hex (string) or Color Hex (null) (Color Hex) Hexadecimal color code of the filament, e.g. FF0000 for red. Supports alpha channel at the end. If it's a multi-color filament, the multi_color_hexes field is used instead. | |
Multi Color Hexes (string) or Multi Color Hexes (null) (Multi Color Hexes) Hexadecimal color code of the filament, e.g. FF0000 for red. Supports alpha channel at the end. Specifying multiple colors separated by commas. Also set the multi_color_direction field if you specify multiple colors. | |
MultiColorDirection (string) or null Type of multi-color filament. Only set if the color_hex field contains multiple colors. | |
External Id (string) or External Id (null) (External Id) Set if this filament comes from an external database. This contains the ID in the external database. | |
Extra (object) or Extra (null) (Extra) Extra fields for this filament. |
{- "name": "PolyTerra™ Charcoal Black",
- "vendor_id": 0,
- "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
{- "id": 0,
- "registered": "string",
- "name": "PolyTerra™ Charcoal Black",
- "vendor": {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Get a specific filament. A websocket is served on the same path to listen for changes to the filament. See the HTTP Response code 299 for the content of the websocket messages.
filament_id required | integer (Filament Id) |
{- "id": 0,
- "registered": "string",
- "name": "PolyTerra™ Charcoal Black",
- "vendor": {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Update any attribute of a filament. Only fields specified in the request will be affected. If extra is set, all existing extra fields will be removed and replaced with the new ones.
filament_id required | integer (Filament Id) |
Name (string) or Name (null) (Name) Filament name, to distinguish this filament type among others from the same vendor.Should contain its color for example. | |
Vendor Id (integer) or Vendor Id (null) (Vendor Id) The ID of the vendor of this filament type. | |
Material (string) or Material (null) (Material) The material of this filament, e.g. PLA. | |
Price (number) or Price (null) (Price) The price of this filament in the system configured currency. | |
Density (number) or Density (null) (Density) The density of this filament in g/cm3. | |
Diameter (number) or Diameter (null) (Diameter) The diameter of this filament in mm. | |
Weight (number) or Weight (null) (Weight) The weight of the filament in a full spool, in grams. (net weight) | |
Spool Weight (number) or Spool Weight (null) (Spool Weight) The empty spool weight, in grams. | |
Article Number (string) or Article Number (null) (Article Number) Vendor article number, e.g. EAN, QR code, etc. | |
Comment (string) or Comment (null) (Comment) Free text comment about this filament type. | |
Settings Extruder Temp (integer) or Settings Extruder Temp (null) (Settings Extruder Temp) Overridden extruder temperature, in °C. | |
Settings Bed Temp (integer) or Settings Bed Temp (null) (Settings Bed Temp) Overridden bed temperature, in °C. | |
Color Hex (string) or Color Hex (null) (Color Hex) Hexadecimal color code of the filament, e.g. FF0000 for red. Supports alpha channel at the end. If it's a multi-color filament, the multi_color_hexes field is used instead. | |
Multi Color Hexes (string) or Multi Color Hexes (null) (Multi Color Hexes) Hexadecimal color code of the filament, e.g. FF0000 for red. Supports alpha channel at the end. Specifying multiple colors separated by commas. Also set the multi_color_direction field if you specify multiple colors. | |
MultiColorDirection (string) or null Type of multi-color filament. Only set if the color_hex field contains multiple colors. | |
External Id (string) or External Id (null) (External Id) Set if this filament comes from an external database. This contains the ID in the external database. | |
Extra (object) or Extra (null) (Extra) Extra fields for this filament. |
{- "name": "PolyTerra™ Charcoal Black",
- "vendor_id": 0,
- "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
{- "id": 0,
- "registered": "string",
- "name": "PolyTerra™ Charcoal Black",
- "vendor": {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Get a list of spools that matches the search query. A websocket is served on the same path to listen for updates to any spool, or added or deleted spools. See the HTTP Response code 299 for the content of the websocket messages.
Filament Name (string) or Filament Name (null) (Filament Name) Deprecated See filament.name. | |
Filament ID (string) or Filament ID (null) (Filament ID) Deprecated See filament.id. | |
Filament Material (string) or Filament Material (null) (Filament Material) Deprecated See filament.material. | |
Vendor Name (string) or Vendor Name (null) (Vendor Name) Deprecated See filament.vendor.name. | |
Vendor ID (string) or Vendor ID (null) (Vendor ID) Deprecated See filament.vendor.id. | |
Filament Name (string) or Filament Name (null) (Filament Name) Partial case-insensitive search term for the filament name. Separate multiple terms with a comma. Specify an empty string to match spools with no filament name. Surround a term with quotes to search for the exact term. | |
Filament ID (string) or Filament ID (null) (Filament ID) Examples: filament.id=1 filament.id=1,2 Match an exact filament ID. Separate multiple IDs with a comma. | |
Filament Material (string) or Filament Material (null) (Filament Material) Partial case-insensitive search term for the filament material. Separate multiple terms with a comma. Specify an empty string to match spools with no filament material. Surround a term with quotes to search for the exact term. | |
Vendor Name (string) or Vendor Name (null) (Vendor Name) Partial case-insensitive search term for the filament vendor name. Separate multiple terms with a comma. Specify an empty string to match spools with no vendor name. Surround a term with quotes to search for the exact term. | |
Vendor ID (string) or Vendor ID (null) (Vendor ID) Examples: filament.vendor.id=1 filament.vendor.id=1,2 Match an exact vendor ID. Separate multiple IDs with a comma. Set it to -1 to match spools with filaments with no vendor. | |
Location (string) or Location (null) (Location) Partial case-insensitive search term for the spool location. Separate multiple terms with a comma. Specify an empty string to match spools with no location. Surround a term with quotes to search for the exact term. | |
Lot/Batch Number (string) or Lot/Batch Number (null) (Lot/Batch Number) Partial case-insensitive search term for the spool lot number. Separate multiple terms with a comma. Specify an empty string to match spools with no lot nr. Surround a term with quotes to search for the exact term. | |
allow_archived | boolean (Allow Archived) Default: false Whether to include archived spools in the search results. |
Sort (string) or Sort (null) (Sort) Example: sort=filament.name:asc,filament.vendor.id:asc,location:desc Sort the results by the given field. Should be a comma-separate string with "field:direction" items. | |
Limit (integer) or Limit (null) (Limit) Maximum number of items in the response. | |
offset | integer (Offset) Default: 0 Offset in the full result set if a limit is set. |
[- {
- "id": 0,
- "registered": "string",
- "first_used": "string",
- "last_used": "string",
- "filament": {
- "id": 0,
- "registered": "string",
- "name": "PolyTerra™ Charcoal Black",
- "vendor": {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "price": 20,
- "remaining_weight": 500.6,
- "initial_weight": 1246,
- "spool_weight": 246,
- "used_weight": 500.3,
- "remaining_length": 5612.4,
- "used_length": 50.7,
- "location": "Shelf A",
- "lot_nr": "52342",
- "comment": "",
- "archived": true,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
]
Add a new spool to the database. Only specify either remaining_weight or used_weight. If no weight is set, the spool will be assumed to be full.
First Used (string) or First Used (null) (First Used) First logged occurence of spool usage. | |
Last Used (string) or Last Used (null) (Last Used) Last logged occurence of spool usage. | |
filament_id required | integer (Filament Id) The ID of the filament type of this spool. |
Price (number) or Price (null) (Price) The price of this filament in the system configured currency. | |
Initial Weight (number) or Initial Weight (null) (Initial Weight) The initial weight of the filament on the spool, in grams. (net weight) | |
Spool Weight (number) or Spool Weight (null) (Spool Weight) The weight of an empty spool, in grams. (tare weight) | |
Remaining Weight (number) or Remaining Weight (null) (Remaining Weight) Remaining weight of filament on the spool. Can only be used if the filament type has a weight set. | |
Used Weight (number) or Used Weight (null) (Used Weight) Used weight of filament on the spool. | |
Location (string) or Location (null) (Location) Where this spool can be found. | |
Lot Nr (string) or Lot Nr (null) (Lot Nr) Vendor manufacturing lot/batch number of the spool. | |
Comment (string) or Comment (null) (Comment) Free text comment about this specific spool. | |
archived | boolean (Archived) Default: false Whether this spool is archived and should not be used anymore. |
Extra (object) or Extra (null) (Extra) Extra fields for this spool. |
{- "first_used": "2019-08-24T14:15:22Z",
- "last_used": "2019-08-24T14:15:22Z",
- "filament_id": 0,
- "price": 20,
- "initial_weight": 200,
- "spool_weight": 200,
- "remaining_weight": 800,
- "used_weight": 200,
- "location": "Shelf A",
- "lot_nr": "52342",
- "comment": "",
- "archived": false,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
{- "id": 0,
- "registered": "string",
- "first_used": "string",
- "last_used": "string",
- "filament": {
- "id": 0,
- "registered": "string",
- "name": "PolyTerra™ Charcoal Black",
- "vendor": {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "price": 20,
- "remaining_weight": 500.6,
- "initial_weight": 1246,
- "spool_weight": 246,
- "used_weight": 500.3,
- "remaining_length": 5612.4,
- "used_length": 50.7,
- "location": "Shelf A",
- "lot_nr": "52342",
- "comment": "",
- "archived": true,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Get a specific spool. A websocket is served on the same path to listen for changes to the spool. See the HTTP Response code 299 for the content of the websocket messages.
spool_id required | integer (Spool Id) |
{- "id": 0,
- "registered": "string",
- "first_used": "string",
- "last_used": "string",
- "filament": {
- "id": 0,
- "registered": "string",
- "name": "PolyTerra™ Charcoal Black",
- "vendor": {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "price": 20,
- "remaining_weight": 500.6,
- "initial_weight": 1246,
- "spool_weight": 246,
- "used_weight": 500.3,
- "remaining_length": 5612.4,
- "used_length": 50.7,
- "location": "Shelf A",
- "lot_nr": "52342",
- "comment": "",
- "archived": true,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Update any attribute of a spool. Only fields specified in the request will be affected. remaining_weight and used_weight can't be set at the same time. If extra is set, all existing extra fields will be removed and replaced with the new ones.
spool_id required | integer (Spool Id) |
First Used (string) or First Used (null) (First Used) First logged occurence of spool usage. | |
Last Used (string) or Last Used (null) (Last Used) Last logged occurence of spool usage. | |
Filament Id (integer) or Filament Id (null) (Filament Id) The ID of the filament type of this spool. | |
Price (number) or Price (null) (Price) The price of this filament in the system configured currency. | |
Initial Weight (number) or Initial Weight (null) (Initial Weight) The initial weight of the filament on the spool, in grams. (net weight) | |
Spool Weight (number) or Spool Weight (null) (Spool Weight) The weight of an empty spool, in grams. (tare weight) | |
Remaining Weight (number) or Remaining Weight (null) (Remaining Weight) Remaining weight of filament on the spool. Can only be used if the filament type has a weight set. | |
Used Weight (number) or Used Weight (null) (Used Weight) Used weight of filament on the spool. | |
Location (string) or Location (null) (Location) Where this spool can be found. | |
Lot Nr (string) or Lot Nr (null) (Lot Nr) Vendor manufacturing lot/batch number of the spool. | |
Comment (string) or Comment (null) (Comment) Free text comment about this specific spool. | |
archived | boolean (Archived) Default: false Whether this spool is archived and should not be used anymore. |
Extra (object) or Extra (null) (Extra) Extra fields for this spool. |
{- "first_used": "2019-08-24T14:15:22Z",
- "last_used": "2019-08-24T14:15:22Z",
- "filament_id": 0,
- "price": 20,
- "initial_weight": 200,
- "spool_weight": 200,
- "remaining_weight": 800,
- "used_weight": 200,
- "location": "Shelf A",
- "lot_nr": "52342",
- "comment": "",
- "archived": false,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
{- "id": 0,
- "registered": "string",
- "first_used": "string",
- "last_used": "string",
- "filament": {
- "id": 0,
- "registered": "string",
- "name": "PolyTerra™ Charcoal Black",
- "vendor": {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "price": 20,
- "remaining_weight": 500.6,
- "initial_weight": 1246,
- "spool_weight": 246,
- "used_weight": 500.3,
- "remaining_length": 5612.4,
- "used_length": 50.7,
- "location": "Shelf A",
- "lot_nr": "52342",
- "comment": "",
- "archived": true,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Use some length or weight of filament from the spool. Specify either a length or a weight, not both.
spool_id required | integer (Spool Id) |
Use Length (number) or Use Length (null) (Use Length) Length of filament to reduce by, in mm. | |
Use Weight (number) or Use Weight (null) (Use Weight) Filament weight to reduce by, in g. |
{- "use_length": 2.2,
- "use_weight": 5.3
}
{- "id": 0,
- "registered": "string",
- "first_used": "string",
- "last_used": "string",
- "filament": {
- "id": 0,
- "registered": "string",
- "name": "PolyTerra™ Charcoal Black",
- "vendor": {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "price": 20,
- "remaining_weight": 500.6,
- "initial_weight": 1246,
- "spool_weight": 246,
- "used_weight": 500.3,
- "remaining_length": 5612.4,
- "used_length": 50.7,
- "location": "Shelf A",
- "lot_nr": "52342",
- "comment": "",
- "archived": true,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Use some weight of filament from the spool. Specify the current gross weight of the spool.
spool_id required | integer (Spool Id) |
weight required | number (Weight) Current gross weight of the spool, in g. |
{- "weight": 200
}
{- "id": 0,
- "registered": "string",
- "first_used": "string",
- "last_used": "string",
- "filament": {
- "id": 0,
- "registered": "string",
- "name": "PolyTerra™ Charcoal Black",
- "vendor": {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "material": "PLA",
- "price": 20,
- "density": 1.24,
- "diameter": 1.75,
- "weight": 1000,
- "spool_weight": 140,
- "article_number": "PM70820",
- "comment": "",
- "settings_extruder_temp": 210,
- "settings_bed_temp": 60,
- "color_hex": "FF0000",
- "multi_color_hexes": "FF0000,00FF00,0000FF",
- "multi_color_direction": "coaxial",
- "external_id": "polymaker_pla_polysonicblack_1000_175",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}, - "price": 20,
- "remaining_weight": 500.6,
- "initial_weight": 1246,
- "spool_weight": 246,
- "used_weight": 500.3,
- "remaining_length": 5612.4,
- "used_length": 50.7,
- "location": "Shelf A",
- "lot_nr": "52342",
- "comment": "",
- "archived": true,
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Get a list of vendors that matches the search query. A websocket is served on the same path to listen for updates to any vendor, or added or deleted vendors. See the HTTP Response code 299 for the content of the websocket messages.
Vendor Name (string) or Vendor Name (null) (Vendor Name) Partial case-insensitive search term for the vendor name. Separate multiple terms with a comma. Surround a term with quotes to search for the exact term. | |
Vendor External ID (string) or Vendor External ID (null) (Vendor External ID) Exact match for the vendor external ID. Separate multiple IDs with a comma. Specify empty string to match filaments with no external ID. Surround a term with quotes to search for the exact term. | |
Sort (string) or Sort (null) (Sort) Example: sort=name:asc,id:desc Sort the results by the given field. Should be a comma-separate string with "field:direction" items. | |
Limit (integer) or Limit (null) (Limit) Maximum number of items in the response. | |
offset | integer (Offset) Default: 0 Offset in the full result set if a limit is set. |
[- {
- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
]
Add a new vendor to the database.
name required | string (Name) <= 64 characters Vendor name. |
Comment (string) or Comment (null) (Comment) Free text comment about this vendor. | |
Empty Spool Weight (number) or Empty Spool Weight (null) (Empty Spool Weight) The weight of an empty spool, in grams. | |
External Id (string) or External Id (null) (External Id) Set if this vendor comes from an external database. This contains the ID in the external database. | |
Extra (object) or Extra (null) (Extra) Extra fields for this vendor. |
{- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 200,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
{- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Get a specific vendor. A websocket is served on the same path to listen for changes to the vendor. See the HTTP Response code 299 for the content of the websocket messages.
vendor_id required | integer (Vendor Id) |
{- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Update any attribute of a vendor. Only fields specified in the request will be affected. If extra is set, all existing extra fields will be removed and replaced with the new ones.
vendor_id required | integer (Vendor Id) |
Name (string) or Name (null) (Name) Vendor name. | |
Comment (string) or Comment (null) (Comment) Free text comment about this vendor. | |
Empty Spool Weight (number) or Empty Spool Weight (null) (Empty Spool Weight) The weight of an empty spool, in grams. | |
External Id (string) or External Id (null) (External Id) Set if this vendor comes from an external database. This contains the ID in the external database. | |
Extra (object) or Extra (null) (Extra) Extra fields for this vendor. |
{- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 200,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
{- "id": 0,
- "registered": "string",
- "name": "Polymaker",
- "comment": "",
- "empty_spool_weight": 140,
- "external_id": "eSun",
- "extra": {
- "property1": "string",
- "property2": "string"
}
}
Get a specific setting. If the setting has not been set, the default value will be returned.A websocket is served on the same path to listen for changes to the setting. See the HTTP Response code 299 for the content of the websocket messages.
key required | string (Key) |
{- "value": "string",
- "is_set": true,
- "type": "boolean"
}
Set the value of a setting. The body must match the JSON type of the setting. An empty body or a body containing only 'null' will reset the setting to its default value. The new value will be returned.
key required | string (Key) |
"string"
{- "value": "string",
- "is_set": true,
- "type": "boolean"
}
Get all settings, set or not. If the setting has not been set, 'value' will be the default value.
{- "property1": {
- "value": "string",
- "is_set": true,
- "type": "boolean"
}, - "property2": {
- "value": "string",
- "is_set": true,
- "type": "boolean"
}
}
Get all extra fields for a specific entity type.
entity_type required | string (EntityType) Enum: "vendor" "filament" "spool" Entity type this field is for |
[- {
- "name": "string",
- "order": 0,
- "unit": "string",
- "field_type": "text",
- "default_value": "string",
- "choices": [
- "string"
], - "multi_choice": true,
- "key": "^a$",
- "entity_type": "vendor"
}
]
Add or update an extra field for a specific entity type. Returns the full list of extra fields for the entity type.
entity_type required | string (EntityType) Enum: "vendor" "filament" "spool" Entity type this field is for |
key required | string (Key) [ 1 .. 64 ] characters ^[a-z0-9_]+$ |
name required | string (Name) [ 1 .. 128 ] characters Nice name |
order | integer (Order) Default: 0 Order of the field |
Unit (string) or Unit (null) (Unit) Unit of the value | |
field_type required | string (ExtraFieldType) Enum: "text" "integer" "integer_range" "float" "float_range" "datetime" "boolean" "choice" Type of the field |
Default Value (string) or Default Value (null) (Default Value) Default value of the field | |
Array of Choices (strings) or Choices (null) (Choices) Choices for the field, only for field type choice | |
Multi Choice (boolean) or Multi Choice (null) (Multi Choice) Whether multiple choices can be selected |
{- "name": "string",
- "order": 0,
- "unit": "string",
- "field_type": "text",
- "default_value": "string",
- "choices": [
- "string"
], - "multi_choice": true
}
[- {
- "name": "string",
- "order": 0,
- "unit": "string",
- "field_type": "text",
- "default_value": "string",
- "choices": [
- "string"
], - "multi_choice": true,
- "key": "^a$",
- "entity_type": "vendor"
}
]
Delete an extra field for a specific entity type. Returns the full list of extra fields for the entity type.
entity_type required | string (EntityType) Enum: "vendor" "filament" "spool" Entity type this field is for |
key required | string (Key) [ 1 .. 64 ] characters ^[a-z0-9_]+$ |
[- {
- "name": "string",
- "order": 0,
- "unit": "string",
- "field_type": "text",
- "default_value": "string",
- "choices": [
- "string"
], - "multi_choice": true,
- "key": "^a$",
- "entity_type": "vendor"
}
]
Rename a spool location. All spools in this location will be moved to the new location.
location required | string (Location) |
name required | string (Name) non-empty The new name of the location. |
{- "name": "string"
}
"string"
[- {
- "id": "polymaker_pla_polysonicblack_1000_175",
- "manufacturer": "Polymaker",
- "name": "Polysonic™ Black",
- "material": "PLA",
- "density": 1.23,
- "weight": 1000,
- "spool_weight": 140,
- "spool_type": "plastic",
- "diameter": 1.75,
- "color_hex": "2c3232",
- "color_hexes": [
- "2c3232",
- "5f5f5f"
], - "extruder_temp": 210,
- "bed_temp": 50,
- "finish": "matte",
- "multi_color_direction": "coaxial",
- "pattern": "marble",
- "translucent": false,
- "glow": false
}
]