@@ -53,8 +53,8 @@ curl https://api.simplyprint.io/{id}/account/settings/groups/Create \
53
53
</aside >
54
54
55
55
| Required permissions |
56
- | --------------------- |
57
- | ` ORG_RANK_MANAGEMENT ` |
56
+ | ----------------------- |
57
+ | ` org_rank_management ` |
58
58
59
59
This endpoint creates a new group in the company.
60
60
@@ -63,7 +63,7 @@ This endpoint creates a new group in the company.
63
63
` POST /{id}/account/settings/groups/Create `
64
64
65
65
| Parameter | Type | Required | Description |
66
- | --------------------- | ------- | -------- | --------------------------------------------------------------------------------------------------- |
66
+ | ----------------------- | --------- | ---------- | ----------------------------------------------------------------------------------------------------- |
67
67
| ` ranks ` | array | yes | Array of groups to create. |
68
68
| ` ranks[].title ` | string | yes | The name of the group. |
69
69
| ` ranks[].description ` | string | no | The description of the group. |
@@ -73,7 +73,7 @@ This endpoint creates a new group in the company.
73
73
### Response
74
74
75
75
| Parameter | Type | Description |
76
- | --------- | ------- | ----------------------------------- |
76
+ | ----------- | --------- | ------------------------------------- |
77
77
| ` status ` | boolean | True if the request was successful. |
78
78
| ` message ` | string | Error message if ` status ` is false. |
79
79
| ` data ` | array | Array of the created groups. |
@@ -97,7 +97,7 @@ curl https://api.simplyprint.io/{id}/account/settings/groups/Update \
97
97
"title" : " TITLE" ,
98
98
"description" : " DESCRIPTION" ,
99
99
"permissions" : " {\" view_news\" :true,\" org_admin\" :true,\" panel_printing\" :true,\" printer_restart\" :true,\" printer_edit\" :true,\" bed_leveling\" :true,\" gcode_profiles\" :true,\" printer_settings\" :true,\" filament_settings\" :true,\" change_filament\" :true,\" create_filament\" :true,\" see_filament_tab\" :true,\" view_users\" :true,\" change_user_rank\" :true,\" manual_user_email_confirm\" :true,\" invite_users\" :true,\" delete_user\" :true,\" org_user_registration_settings\" :true,\" org_hub_settings\" :true,\" org_rank_management\" :true,\" org_view_statistics\" :true,\" refill_quota\" :true,\" custom_slicer_profiles\" :true,\" org_profiles\" :true,\" all_slicer_modes\" :true,\" queue_remove_all\" :true,\" org_api\" :true,\" create_org_folder\" :true,\" cancel_others\" :true,\" see_who_printed\" :true,\" max_print_size\" :[],\" default_slicer_mode\" :2}" ,
100
- "sort_order" : 3 ,
100
+ "sort_order" : 3
101
101
}
102
102
]
103
103
}
@@ -129,8 +129,8 @@ curl https://api.simplyprint.io/{id}/account/settings/groups/Update \
129
129
</aside >
130
130
131
131
| Required permissions |
132
- | --------------------- |
133
- | ` ORG_RANK_MANAGEMENT ` |
132
+ | ----------------------- |
133
+ | ` org_rank_management ` |
134
134
135
135
This endpoint updates the groups in the company.
136
136
@@ -139,7 +139,7 @@ This endpoint updates the groups in the company.
139
139
` POST /{id}/account/settings/groups/Update `
140
140
141
141
| Parameter | Type | Required | Description |
142
- | --------------------- | ------- | -------- | --------------------------------------------------------------------------------------------------- |
142
+ | ----------------------- | --------- | ---------- | ----------------------------------------------------------------------------------------------------- |
143
143
| ` ranks ` | array | yes | Array of groups to update. |
144
144
| ` ranks[].id ` | integer | yes | The id of the group to update. |
145
145
| ` ranks[].title ` | string | no | The name of the group. |
@@ -150,7 +150,7 @@ This endpoint updates the groups in the company.
150
150
### Response
151
151
152
152
| Parameter | Type | Description |
153
- | --------------------- | ------- | --------------------------------------------------------------------------------------------------- |
153
+ | ----------------------- | --------- | ----------------------------------------------------------------------------------------------------- |
154
154
| ` status ` | boolean | True if the request was successful. |
155
155
| ` message ` | string | Error message if ` status ` is false. |
156
156
| ` data ` | array | Array of the updated groups. |
@@ -199,8 +199,8 @@ curl https://api.simplyprint.io/{id}/account/GetGroups \
199
199
</aside >
200
200
201
201
| Required permissions |
202
- | --------------------- |
203
- | ` ORG_RANK_MANAGEMENT ` |
202
+ | ----------------------- |
203
+ | ` org_rank_management ` |
204
204
205
205
This endpoint returns a list of groups that exist in the company.
206
206
@@ -211,7 +211,7 @@ This endpoint returns a list of groups that exist in the company.
211
211
### Response
212
212
213
213
| Parameter | Type | Description |
214
- | --------------- | ------- | ----------------------------------- |
214
+ | ----------------- | --------- | ------------------------------------- |
215
215
| ` status ` | boolean | True if the request was successful. |
216
216
| ` message ` | string | Error message if ` status ` is false. |
217
217
| ` groups ` | array | Array of group objects. |
@@ -241,7 +241,7 @@ curl https://api.simplyprint.io/{id}/account/settings/groups/Delete \
241
241
``` json
242
242
{
243
243
"status" : true ,
244
- "message" : null ,
244
+ "message" : null
245
245
}
246
246
```
247
247
@@ -250,22 +250,22 @@ curl https://api.simplyprint.io/{id}/account/settings/groups/Delete \
250
250
</aside >
251
251
252
252
| Required permissions |
253
- | --------------------- |
254
- | ` ORG_RANK_MANAGEMENT ` |
253
+ | ----------------------- |
254
+ | ` org_rank_management ` |
255
255
256
256
### Request
257
257
258
258
` POST /{id}/account/settings/groups/Delete `
259
259
260
260
| Parameter | Type | Required | Description |
261
- | ------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------- |
261
+ | --------------------- | --------- | ---------- | --------------------------------------------------------------------------------------------------------- |
262
262
| ` id ` | integer | yes | The id of the group to delete. |
263
263
| ` replacementRankId ` | integer | maybe | The id of the group to replace the deleted group with.<br >This is only required if the group has users. |
264
264
265
265
### Response
266
266
267
267
| Parameter | Type | Description |
268
- | --------- | ------- | ----------------------------------- |
268
+ | ----------- | --------- | ------------------------------------- |
269
269
| ` status ` | boolean | True if the request was successful. |
270
270
| ` message ` | string | Error message if ` status ` is false. |
271
271
@@ -282,8 +282,16 @@ curl https://api.simplyprint.io/{id}/account/GetStatistics \
282
282
283
283
``` json
284
284
{
285
- "users" : [1234 , 1235 , 1945 ],
286
- "printers" : [1234 , 1235 , 1945 ],
285
+ "users" : [
286
+ 1234 ,
287
+ 1235 ,
288
+ 1945
289
+ ],
290
+ "printers" : [
291
+ 1234 ,
292
+ 1235 ,
293
+ 1945
294
+ ],
287
295
"start_date" : " 1677629786" ,
288
296
"end_date" : " 1677629786"
289
297
}
@@ -293,46 +301,46 @@ curl https://api.simplyprint.io/{id}/account/GetStatistics \
293
301
294
302
``` json
295
303
{
296
- "status" : true ,
297
- "message" : null ,
298
- "data" : {
299
- "total_print_seconds" : 1234 ,
300
- "total_filament_usage_gram" : 1241.1231231 ,
301
- "print_job_count" : 123 ,
302
- "regretted_print_jobs" : 123 ,
303
- "failed_print_jobs" : 123 ,
304
- "printer_error_print_jobs" : 123 ,
305
- "done_print_jobs" : 123 ,
306
- "date_range" : {
307
- "from" : " 2023-02-22" ,
308
- "to" : " 2023-03-02" ,
309
- "general" : false
310
- },
311
- "printers" : {
312
- "3104" : {
313
- "name" : " Printer 1" ,
314
- "done" : 0 ,
315
- "failed" : 0 ,
316
- "printer_error" : 0 ,
317
- "regretted" : 0 ,
318
- "filament_usage_gram" : 0
319
- },
320
- ...
321
- },
322
- "print_jobs" : [
323
- {
324
- "date" : " 2023-02-27" ,
325
- "started" : " 2023-02-27 11:39:34" ,
326
- "ended" : " 2023-02-27 11:56:18" ,
327
- "cancelled" : 1 ,
328
- "failed" : 0 ,
329
- "cancel_reason_type" : 5 ,
330
- "print_seconds" : 1004 ,
331
- "filament_usage_gram" : 0.03758012402132279
332
- },
333
- ...
334
- ]
335
- }
304
+ "status" : true ,
305
+ "message" : null ,
306
+ "data" : {
307
+ "total_print_seconds" : 1234 ,
308
+ "total_filament_usage_gram" : 1241.1231231 ,
309
+ "print_job_count" : 123 ,
310
+ "regretted_print_jobs" : 123 ,
311
+ "failed_print_jobs" : 123 ,
312
+ "printer_error_print_jobs" : 123 ,
313
+ "done_print_jobs" : 123 ,
314
+ "date_range" : {
315
+ "from" : " 2023-02-22" ,
316
+ "to" : " 2023-03-02" ,
317
+ "general" : false
318
+ },
319
+ "printers" : {
320
+ "3104" : {
321
+ "name" : " Printer 1" ,
322
+ "done" : 0 ,
323
+ "failed" : 0 ,
324
+ "printer_error" : 0 ,
325
+ "regretted" : 0 ,
326
+ "filament_usage_gram" : 0
327
+ },
328
+ ...
329
+ },
330
+ "print_jobs" : [
331
+ {
332
+ "date" : " 2023-02-27" ,
333
+ "started" : " 2023-02-27 11:39:34" ,
334
+ "ended" : " 2023-02-27 11:56:18" ,
335
+ "cancelled" : 1 ,
336
+ "failed" : 0 ,
337
+ "cancel_reason_type" : 5 ,
338
+ "print_seconds" : 1004 ,
339
+ "filament_usage_gram" : 0.03758012402132279
340
+ },
341
+ ...
342
+ ]
343
+ }
336
344
}
337
345
```
338
346
@@ -347,7 +355,7 @@ This endpoint returns statistics for the user / company.
347
355
` POST /{id}/account/GetStatistics `
348
356
349
357
| Parameter | Type | Required | Description |
350
- | ------------ | ------ | -------- | ------------------------------------------------------------------------------------------------------------ |
358
+ | -------------- | -------- | ---------- | -------------------------------------------------------------------------------------------------------------- |
351
359
| ` users ` | array | no | Array of user ids to get statistics for. Don't include this parameter to get statistics for all users. |
352
360
| ` printers ` | array | no | Array of printer ids to get statistics for. Don't include this parameter to get statistics for all printers. |
353
361
| ` start_date ` | string | no | The start date of the statistics. Provide a unix timestamp in seconds. |
@@ -356,7 +364,7 @@ This endpoint returns statistics for the user / company.
356
364
### Response
357
365
358
366
| Parameter | Type | Description |
359
- | ---------------------------------------- | ------- | ---------------------------------------- |
367
+ | ------------------------------------------ | --------- | ------------------------------------------ |
360
368
| ` status ` | boolean | True if the request was successful. |
361
369
| ` message ` | string | Error message if ` status ` is false. |
362
370
| ` data ` | object | Statistics object. |
0 commit comments