@@ -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. |
@@ -167,7 +167,6 @@ This endpoint updates the groups in the company.
167
167
168
168
``` shell
169
169
curl https://api.simplyprint.io/{id}/account/GetGroups \
170
- -X GET \
171
170
-H ' accept: application/json' \
172
171
-H ' X-API-KEY: {API_KEY}'
173
172
```
@@ -200,8 +199,8 @@ curl https://api.simplyprint.io/{id}/account/GetGroups \
200
199
</aside >
201
200
202
201
| Required permissions |
203
- | --------------------- |
204
- | ` ORG_RANK_MANAGEMENT ` |
202
+ | ----------------------- |
203
+ | ` org_rank_management ` |
205
204
206
205
This endpoint returns a list of groups that exist in the company.
207
206
@@ -212,7 +211,7 @@ This endpoint returns a list of groups that exist in the company.
212
211
### Response
213
212
214
213
| Parameter | Type | Description |
215
- | --------------- | ------- | ----------------------------------- |
214
+ | ----------------- | --------- | ------------------------------------- |
216
215
| ` status ` | boolean | True if the request was successful. |
217
216
| ` message ` | string | Error message if ` status ` is false. |
218
217
| ` groups ` | array | Array of group objects. |
@@ -242,7 +241,7 @@ curl https://api.simplyprint.io/{id}/account/settings/groups/Delete \
242
241
``` json
243
242
{
244
243
"status" : true ,
245
- "message" : null ,
244
+ "message" : null
246
245
}
247
246
```
248
247
@@ -251,22 +250,22 @@ curl https://api.simplyprint.io/{id}/account/settings/groups/Delete \
251
250
</aside >
252
251
253
252
| Required permissions |
254
- | --------------------- |
255
- | ` ORG_RANK_MANAGEMENT ` |
253
+ | ----------------------- |
254
+ | ` org_rank_management ` |
256
255
257
256
### Request
258
257
259
258
` POST /{id}/account/settings/groups/Delete `
260
259
261
260
| Parameter | Type | Required | Description |
262
- | ------------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------- |
261
+ | --------------------- | --------- | ---------- | --------------------------------------------------------------------------------------------------------- |
263
262
| ` id ` | integer | yes | The id of the group to delete. |
264
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. |
265
264
266
265
### Response
267
266
268
267
| Parameter | Type | Description |
269
- | --------- | ------- | ----------------------------------- |
268
+ | ----------- | --------- | ------------------------------------- |
270
269
| ` status ` | boolean | True if the request was successful. |
271
270
| ` message ` | string | Error message if ` status ` is false. |
272
271
@@ -283,8 +282,16 @@ curl https://api.simplyprint.io/{id}/account/GetStatistics \
283
282
284
283
``` json
285
284
{
286
- "users" : [1234 , 1235 , 1945 ],
287
- "printers" : [1234 , 1235 , 1945 ],
285
+ "users" : [
286
+ 1234 ,
287
+ 1235 ,
288
+ 1945
289
+ ],
290
+ "printers" : [
291
+ 1234 ,
292
+ 1235 ,
293
+ 1945
294
+ ],
288
295
"start_date" : " 1677629786" ,
289
296
"end_date" : " 1677629786"
290
297
}
@@ -294,46 +301,46 @@ curl https://api.simplyprint.io/{id}/account/GetStatistics \
294
301
295
302
``` json
296
303
{
297
- "status" : true ,
298
- "message" : null ,
299
- "data" : {
300
- "total_print_seconds" : 1234 ,
301
- "total_filament_usage_gram" : 1241.1231231 ,
302
- "print_job_count" : 123 ,
303
- "regretted_print_jobs" : 123 ,
304
- "failed_print_jobs" : 123 ,
305
- "printer_error_print_jobs" : 123 ,
306
- "done_print_jobs" : 123 ,
307
- "date_range" : {
308
- "from" : " 2023-02-22" ,
309
- "to" : " 2023-03-02" ,
310
- "general" : false
311
- },
312
- "printers" : {
313
- "3104" : {
314
- "name" : " Printer 1" ,
315
- "done" : 0 ,
316
- "failed" : 0 ,
317
- "printer_error" : 0 ,
318
- "regretted" : 0 ,
319
- "filament_usage_gram" : 0
320
- },
321
- ...
322
- },
323
- "print_jobs" : [
324
- {
325
- "date" : " 2023-02-27" ,
326
- "started" : " 2023-02-27 11:39:34" ,
327
- "ended" : " 2023-02-27 11:56:18" ,
328
- "cancelled" : 1 ,
329
- "failed" : 0 ,
330
- "cancel_reason_type" : 5 ,
331
- "print_seconds" : 1004 ,
332
- "filament_usage_gram" : 0.03758012402132279
333
- },
334
- ...
335
- ]
336
- }
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
+ }
337
344
}
338
345
```
339
346
@@ -348,7 +355,7 @@ This endpoint returns statistics for the user / company.
348
355
` POST /{id}/account/GetStatistics `
349
356
350
357
| Parameter | Type | Required | Description |
351
- | ------------ | ------ | -------- | ------------------------------------------------------------------------------------------------------------ |
358
+ | -------------- | -------- | ---------- | -------------------------------------------------------------------------------------------------------------- |
352
359
| ` users ` | array | no | Array of user ids to get statistics for. Don't include this parameter to get statistics for all users. |
353
360
| ` printers ` | array | no | Array of printer ids to get statistics for. Don't include this parameter to get statistics for all printers. |
354
361
| ` start_date ` | string | no | The start date of the statistics. Provide a unix timestamp in seconds. |
@@ -357,7 +364,7 @@ This endpoint returns statistics for the user / company.
357
364
### Response
358
365
359
366
| Parameter | Type | Description |
360
- | ---------------------------------------- | ------- | ---------------------------------------- |
367
+ | ------------------------------------------ | --------- | ------------------------------------------ |
361
368
| ` status ` | boolean | True if the request was successful. |
362
369
| ` message ` | string | Error message if ` status ` is false. |
363
370
| ` data ` | object | Statistics object. |
0 commit comments