Skip to content

Commit 7d27c03

Browse files
authored
"Tags" feature endpoint changes
1 parent 4d7a292 commit 7d27c03

File tree

3 files changed

+65
-3
lines changed

3 files changed

+65
-3
lines changed

source/includes/_files.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,47 @@ curl https://api.simplyprint.io/{id}/files/GetFiles?f=123&search=benchy \
2929
"printsFailed": 0,
3030
"timesSliced": 0
3131
},
32-
"user_id": 6044,
32+
"user_id": 123,
3333
"thumbnail": 1,
3434
"folder": 0,
35-
"user": 6044
35+
"user": 123,
36+
},
37+
{
38+
"id": "e82ab9e1cc3c20850d94d5cf539390c0",
39+
"name": "3DBenchy",
40+
"ext": "gcode",
41+
"type": "model",
42+
"size": 1285384,
43+
"created": "December 23, 2022, 18:00",
44+
"createdint": 1671813330,
45+
"printData": {
46+
"printsDone": 10,
47+
"printsCancelled": 5,
48+
"printsFailed": 0,
49+
"timesSliced": 0
50+
},
51+
"user_id": 123,
52+
"thumbnail": 1,
53+
"folder": 0,
54+
"user": 123,
55+
"forPrinters": [
56+
// list of printers IDs selected for file; key not present if no printers are selected
57+
1,
58+
2,
59+
3
60+
],
61+
"tags": {
62+
"nozzle": 0.6,
63+
"material": [
64+
{
65+
"ext": 0,
66+
"type": 123,
67+
"color": "Green",
68+
"hex":"#4CAF50"
69+
}
70+
],
71+
"custom": [1, 2, 3]
72+
}
3673
}
3774
],
3875
"folders": [

source/includes/_printers.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@ curl https://api.simplyprint.io/{id}/printers/Get \
134134
"time": 12627,
135135
"canPreview": true,
136136
"layer": null
137+
},
138+
"tags": {
139+
"nozzle": 0.6,
140+
"material": [
141+
{
142+
"ext": 0,
143+
"type": 123,
144+
"color": "Green",
145+
"hex":"#4CAF50"
146+
}
147+
],
148+
"custom": [1, 2, 3]
137149
}
138150
},
139151
...

source/includes/_queue.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ This endpoint gets the next item in the queue for the specified printer. The nex
158158
| `settings.fit` | boolean | no | Print must fit printer's bed.<br>**Default: true** |
159159
| `settings.gcodeAnalysis` | boolean | no | Must have gcode analysis.<br>**Default: true** |
160160
| `settings.printerTemps` | boolean | no | File must have a max temperature that is lower than the printer's max temperature.<br>**Default: true** |
161+
| `settings.tags` | boolean | no | Printer must match possible queue item tags (nozzle size, material data & custom tags).<br>**Default: true** |
161162

162163
### Response
163164

@@ -249,7 +250,19 @@ curl https://api.simplyprint.io/{id}/queue/GetItems?p=1234 \
249250
"v": 5
250251
},
251252
"user": "John Doe",
252-
"user_id": 1234
253+
"user_id": 1234,
254+
"tags": {
255+
"nozzle": 0.6,
256+
"material": [
257+
{
258+
"ext": 0,
259+
"type": 123,
260+
"color": "Green",
261+
"hex":"#4CAF50"
262+
}
263+
],
264+
"custom": [1, 2, 3]
265+
}
253266
}
254267
]
255268
}

0 commit comments

Comments
 (0)