You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This endpoint requires the <b>Print Farm</b> plan.
31
+
</aside>
32
+
33
+
This endpoint adds a file to the queue. The file can either be a file on the filesystem or an uploaded stl/3mf/obj/gcode/gco/nc/npg file.
34
+
20
35
### Request
21
36
22
-
`? /{id}/queue/AddItem`
37
+
`POST /{id}/queue/AddItem`
38
+
39
+
You must specify either a filesystem id or a file to upload.
40
+
41
+
#### Parameters
42
+
43
+
| Parameter | Type | Required | Description |
44
+
| --------- | ---- | -------- | ----------- |
45
+
|`filesystem`| string | no | The filesystem id of the file to add to the queue. |
46
+
|`amount`| int | no | The amount of prints to add to the queue.<br>**Default: 1**|
23
47
24
-
TODO
48
+
#### File upload
25
49
26
-
## GetItems
50
+
| File | Type | Required | Description |
51
+
| --------- | ---- | -------- | ----------- |
52
+
|`file`| stl/3mf/obj/gcode/gco/nc/npg | no | The file to add to the queue.<br>**Max file size: 100MB (bigger files must be uploaded to the filesystem first)**|
53
+
54
+
### Response
55
+
56
+
| Parameter | Type | Description |
57
+
| --------- | ---- | ----------- |
58
+
|`status`| boolean | True if the request was successful. |
59
+
|`message`| string | Success message or error message if `status` is false. |
This endpoint requires the <b>Print Farm</b> plan.
139
+
</aside>
44
140
45
-
`? /{id}/queue/GetItems`
141
+
This endpoint returns the queue for the specified or all printers.
46
142
47
-
TODO
143
+
### Request
48
144
49
-
## UpdateItem
145
+
`GET /{id}/queue/GetItems`
146
+
147
+
| Parameter | Type | Required | Description |
148
+
| --------- | ---- | -------- | ----------- |
149
+
|`p`| int | no | The printer id to get the queue for. If not specified, the queue for all printers will be returned. |
150
+
151
+
### Response
152
+
153
+
| Parameter | Type | Description |
154
+
| --------- | ---- | ----------- |
155
+
|`status`| boolean | True if the request was successful. |
156
+
|`message`| string | Success message or error message if `status` is false. |
157
+
|`queue`| object | The queue object. |
158
+
|`queue.fits`| boolean | TODO |
159
+
|`queue.items`| array | An array of queue item objects. |
160
+
|`queue.items[].id`| int | The queue item id. |
161
+
|`queue.items[].index`| int | The queue item index. |
162
+
|`queue.items[].filename`| string | The queue item filename. |
163
+
|`queue.items[].model`| boolean | True if the queue item is a model. |
164
+
|`queue.items[].left`| int | The amount of prints left to print. |
165
+
|`queue.items[].printed`| int | The amount of prints that have been printed. |
166
+
|`queue.items[].for`| object | For which printers, models and groups this queue item is for. |
167
+
|`queue.items[].for.printers`| array | An array of printer ids. |
168
+
|`queue.items[].for.models`| array | An array of printer model ids. |
169
+
|`queue.items[].for.groups`| array | An array of group ids. |
170
+
|`queue.items[].analysis`| object | The analysis object. |
171
+
|`queue.items[].analysis.slicer`| string | The slicer used to slice the file. |
172
+
|`queue.items[].analysis.filament`| array | An array of filament lengths. |
173
+
|`queue.items[].analysis.estimate`| int | The estimated print time in seconds. |
174
+
|`queue.items[].analysis.movement`| object | The movement object. |
175
+
|`queue.items[].analysis.temps`| object | The temperatures object. |
176
+
|`queue.items[].analysis.temps.tool`| object | Temperature for each tool (extruder). |
177
+
|`queue.items[].analysis.temps.bed`| int | Temperature for the bed. |
178
+
|`queue.items[].analysis.temps.pset`| int | TODO |
179
+
|`queue.items[].analysis.modelSize`| object | The model size object. Represented as `x`, `y` and `z` values in millimeters. |
180
+
|`queue.items[].analysis.printArea`| object | The print area object. Represented as `maxX`, `minX`, `maxY`, `minY`, `maxZ` and `minZ` values in millimeters. |
181
+
|`queue.items[].analysis.minDeltaRadius`| float | Minimum radius for delta printers. |
182
+
|`queue.items[].analysis.v`| int | The analysis version. |
183
+
|`queue.items[].user`| string | The user name of who added the queue item. |
184
+
|`queue.items[].user_id`| int | The user id of who added the queue item. |
0 commit comments