11# Account
22
3- ## Save autoqueue defaults
4-
5- ``` shell
6- curl https://api.simplyprint.io/{id}/account/SaveAutoQueueDefaults \
7- -X POST \
8- -H ' accept: application/json' \
9- -H ' X-API-KEY: {API_KEY}'
10- ```
11-
12- > Request body
13-
14- ``` json
15- {
16- "gcodeAnalysis" : true ,
17- "fit" : true ,
18- "printerTemps" : true ,
19- "filament" : true ,
20- "filamentTemps" : true
21- }
22- ```
23-
24- > Success response
25-
26- ``` json
27- {
28- "status" : true ,
29- "message" : null
30- }
31- ```
32-
33- <aside class =" notice " >
34- This endpoint requires the <b >Print Farm</b > plan.
35- </aside >
36-
37- | Required permissions |
38- | -------------------- |
39- | ` PRINTER_SETTINGS ` |
40-
41- This endpoint saves the auto queue settings for the company.
42-
43- To restore the default settings, send an empty request body to ` POST /{id}/account/SaveAutoQueueDefaults?default=true ` .
44-
45- ### Request
46-
47- ` POST /{id}/account/SaveAutoQueueDefaults `
48-
49- | Parameter | Type | Required | Description |
50- | --------- | ---- | -------- | ----------- |
51- | ` gcodeAnalysis ` | boolean | yes | Whether to only allow gcode files that have been analysed. |
52- | ` fit ` | boolean | yes | If true, the model will be scaled to fit the build volume. |
53- | ` printerTemps ` | boolean | yes | If true, the printer temperatures will be set. |
54- | ` filament ` | boolean | yes | If true, the filament will be set. |
55- | ` filamentTemps ` | boolean | yes | If true, the filament temperatures will be set. |
56-
57- ### Response
58-
59- | Parameter | Type | Description |
60- | --------- | ---- | ----------- |
61- | ` status ` | boolean | True if the request was successful. |
62- | ` message ` | string | Error message if ` status ` is false. |
63-
643## Create company groups
654
665``` shell
@@ -76,10 +15,8 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Create \
7615{
7716 "ranks" : [
7817 {
79- "title" : " name of group in danish/default" ,
80- "title_en" : " name of group in english" ,
81- "description" : " group description in danish/default" ,
82- "description_en" : " group description in english" ,
18+ "title" : " name of group" ,
19+ "description" : " group description" ,
8320 "sort_order" : 3 ,
8421 "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}"
8522 }
@@ -95,10 +32,8 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Create \
9532 "message" : null ,
9633 "data" : [
9734 {
98- "title" : " name of group in danish/default" ,
99- "title_en" : " name of group in english" ,
100- "description" : " group description in danish/default" ,
101- "description_en" : " group description in english" ,
35+ "title" : " name of group" ,
36+ "description" : " group description" ,
10237 "company_id" : 2 ,
10338 "company_type" : 2 ,
10439 "sort_order" : 3 ,
@@ -126,10 +61,8 @@ This endpoint creates a new group in the company.
12661| Parameter | Type | Required | Description |
12762| --------- | ---- | -------- | ----------- |
12863| ` ranks ` | array | yes | Array of groups to create. |
129- | ` ranks[].title ` | string | yes | The name of the group in danish or the name of the group if ` title_en ` is not set. |
130- | ` ranks[].title_en ` | string | no | The name of the group in english. |
131- | ` ranks[].description ` | string | no | The description of the group in danish or the description of the group if ` description_en ` is not set. |
132- | ` ranks[].description_en ` | string | no | The description of the group in english. |
64+ | ` ranks[].title ` | string | yes | The name of the group. |
65+ | ` ranks[].description ` | string | no | The description of the group. |
13366| ` ranks[].sort_order ` | integer | yes | The sort index of the group. |
13467| ` ranks[].permissions ` | string | yes | JSON string of the permissions of the group. For more information, see [ Permissions] ( #permissions ) . |
13568
@@ -157,10 +90,8 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Update \
15790 "ranks" : [
15891 {
15992 "id" : 319 ,
160- "title" : " name of group in danish/default" ,
161- "title_en" : " name of group in english" ,
162- "description" : " group description in danish/default" ,
163- "description_en" : " group description in english" ,
93+ "title" : " TITLE" ,
94+ "description" : " DESCRIPTION" ,
16495 "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}" ,
16596 "sort_order" : 3 ,
16697 }
@@ -178,9 +109,7 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Update \
178109 {
179110 "id" : 319 ,
180111 "title" : " NAME" ,
181- "title_en" : " " ,
182- "description" : " DESCRIPTIONs" ,
183- "description_en" : " " ,
112+ "description" : " DESCRIPTION" ,
184113 "company_id" : 2 ,
185114 "company_type" : 2 ,
186115 "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}" ,
@@ -209,12 +138,10 @@ This endpoint updates the groups in the company.
209138| --------- | ---- | -------- | ----------- |
210139| ` ranks ` | array | yes | Array of groups to update. |
211140| ` ranks[].id ` | integer | yes | The id of the group to update. |
212- | ` ranks[].title ` | string | no | The name of the group in danish or the name of the group if ` title_en ` is not set. |
213- | ` ranks[].title_en ` | string | no | The name of the group in english. |
214- | ` ranks[].description ` | string | no | The description of the group in danish or the description of the group if ` description_en ` is not set. |
215- | ` ranks[].description_en ` | string | no | The description of the group in english. |
141+ | ` ranks[].title ` | string | no | The name of the group. |
142+ | ` ranks[].description ` | string | no | The description of the group. |
216143| ` ranks[].permissions ` | string | no | JSON string of the permissions of the group. For more information, see [ Permissions] ( #permissions ) . |
217- | ` ranks[].company_type ` | integer | no | The type of the company . |
144+ | ` ranks[].sort_order ` | integer | no | The sort index of the group . |
218145
219146### Response
220147
@@ -224,10 +151,8 @@ This endpoint updates the groups in the company.
224151| ` message ` | string | Error message if ` status ` is false. |
225152| ` data ` | array | Array of the updated groups. |
226153| ` data[].id ` | integer | The id of the group. |
227- | ` data[].title ` | string | The name of the group in danish or the name of the group if ` title_en ` is not set. |
228- | ` data[].title_en ` | string | The name of the group in english. |
229- | ` data[].description ` | string | The description of the group in danish or the description of the group if ` description_en ` is not set. |
230- | ` data[].description_en ` | string | The description of the group in english. |
154+ | ` data[].title ` | string | The name of the group. |
155+ | ` data[].description ` | string | The description of the group. |
231156| ` data[].company_id ` | integer | The id of the company. |
232157| ` data[].company_type ` | integer | The type of the company. |
233158| ` data[].permissions ` | string | JSON string of the permissions of the group. For more information, see [ Permissions] ( #permissions ) . |
0 commit comments