@@ -214,7 +214,7 @@ curl https://api.simplyprint.io/{id}/queue/GetItems?p=1234 \
214
214
"left" : 1 ,
215
215
"printed" : 0 ,
216
216
"filesystem_id" : " c00489ef361771ac098b5a60e6740757" ,
217
- "group" : 0 ,
217
+ "group" : 123 ,
218
218
"for" : {
219
219
"printers" : [
220
220
1234
@@ -275,7 +275,21 @@ curl https://api.simplyprint.io/{id}/queue/GetItems?p=1234 \
275
275
}
276
276
}
277
277
]
278
- }
278
+ },
279
+ "groups" : [
280
+ {
281
+ "id" : 123 ,
282
+ "name" : " Group 1" ,
283
+ "virtual" : false ,
284
+ "extensions" : [
285
+ " gcode" ,
286
+ " gco" ,
287
+ " stl" ,
288
+ ],
289
+ "sort_order" : 0
290
+ },
291
+ ...
292
+ ]
279
293
}
280
294
```
281
295
@@ -292,6 +306,7 @@ This endpoint returns the queue for the specified or all printers.
292
306
| Parameter | Type | Required | Description |
293
307
| --------- | ---- | -------- | ----------- |
294
308
| ` p ` | integer | no | The printer id to get the queue for. If not specified, the queue for all printers will be returned. |
309
+ | ` groups ` | boolean | no | Attaches a list of print queue groups to the response. Note: this argument does not take a value. |
295
310
296
311
### Response
297
312
@@ -335,8 +350,14 @@ This endpoint returns the queue for the specified or all printers.
335
350
| ` queue.done_items[].... ` | | * Fields inherited from regular queue items* . |
336
351
| ` queue.done_items[].size ` | integer | Byte-size used by this item - 0 if the file is from the filesystem. |
337
352
| ` queue.done_items[].ongoing ` | boolean | If the item is currently ongoing. |
338
- | ` queue.done_items[].done ` | UTC date| nullable | UTC date that the item was finished. |
339
- | ` queue.done_items[].expires ` | UTC date| nullable | UTC date that the item expires and is removed from the platform. |
353
+ | ` queue.done_items[].done ` | UTC date/null | UTC date that the item was finished. |
354
+ | ` queue.done_items[].expires ` | UTC date/null | UTC date that the item expires and is removed from the platform. |
355
+ | ` groups ` | array | If ` groups ` GET is set, an array of print queue groups. |
356
+ | ` groups[].id ` | integer | The group id. |
357
+ | ` groups[].name ` | string | The group name. |
358
+ | ` groups[].virtual ` | boolean | Whether the group is a virtual queue group. |
359
+ | ` groups[].extensions ` | array/null | An array of file extensions that are allowed in the group. |
360
+ | ` groups[].sort_order ` | integer | The sort index of the group. |
340
361
341
362
## Update queue item
342
363
0 commit comments