Skip to content

Commit 33f55a7

Browse files
committed
Added description for print queue item data in _jobs.md
1 parent 1d0371d commit 33f55a7

File tree

1 file changed

+36
-27
lines changed

1 file changed

+36
-27
lines changed

source/includes/_jobs.md

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -48,33 +48,38 @@ curl https://api.simplyprint.io/{id}/jobs/GetPaginatedPrintJobs \
4848
"estimate": false,
4949
"total_cost": 150,
5050
"lines": [
51-
{
52-
"id": 1,
53-
"label": "Material usage (account default)",
54-
"cost": 0.02
55-
},
56-
{
57-
"id": 2,
58-
"label":"Material markup",
59-
"cost": null
60-
},
61-
{
62-
"id": 3,
63-
"label":"Machine run time cost",
64-
"cost": null
65-
},
66-
{
67-
"id": 4,
68-
"label": "Energy cost",
69-
"cost": null
70-
},
71-
{
72-
"id": 5,
73-
"label": "Labor cost",
74-
"cost": 1000
75-
}
76-
]
77-
}
51+
{
52+
"id": 1,
53+
"label": "Material usage (account default)",
54+
"cost": 0.02
55+
},
56+
{
57+
"id": 2,
58+
"label":"Material markup",
59+
"cost": null
60+
},
61+
{
62+
"id": 3,
63+
"label":"Machine run time cost",
64+
"cost": null
65+
},
66+
{
67+
"id": 4,
68+
"label": "Energy cost",
69+
"cost": null
70+
},
71+
{
72+
"id": 5,
73+
"label": "Labor cost",
74+
"cost": 1000
75+
}
76+
]
77+
},
78+
"queueItem": {
79+
"id": 1234,
80+
"user": 51,
81+
"queueNum": 3
82+
}
7883
},
7984
...
8085
],
@@ -121,4 +126,8 @@ Get paginated data about ongoing or finished print jobs.
121126
| `data[].filUsageGram` | integer | The filament usage in grams. |
122127
| `data[].currentPercentage` | integer | The current percentage of the job. |
123128
| `data[].cost` | object|nullable | Potential calculated cost of job. |
129+
| `data[].queueItem` | object|nullable | The queue item that was used to start the job. Please note that this is only shown if you have access to view the Print Queue. |
130+
| `data[].queueItem.id` | integer | The id of the queue item that was used to start the job. |
131+
| `data[].queueItem.user` | integer | The user id of the user who created the queue item. |
132+
| `data[].queueItem.queueNum` | integer | The queue number of the queue item. |
124133
| `page_amount` | integer | The total number of pages for the given parameters. |

0 commit comments

Comments
 (0)