1
1
# Account
2
2
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
-
64
3
## Create company groups
65
4
66
5
``` shell
@@ -76,10 +15,8 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Create \
76
15
{
77
16
"ranks" : [
78
17
{
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" ,
83
20
"sort_order" : 3 ,
84
21
"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}"
85
22
}
@@ -95,10 +32,8 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Create \
95
32
"message" : null ,
96
33
"data" : [
97
34
{
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" ,
102
37
"company_id" : 2 ,
103
38
"company_type" : 2 ,
104
39
"sort_order" : 3 ,
@@ -126,10 +61,8 @@ This endpoint creates a new group in the company.
126
61
| Parameter | Type | Required | Description |
127
62
| --------- | ---- | -------- | ----------- |
128
63
| ` 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. |
133
66
| ` ranks[].sort_order ` | integer | yes | The sort index of the group. |
134
67
| ` ranks[].permissions ` | string | yes | JSON string of the permissions of the group. For more information, see [ Permissions] ( #permissions ) . |
135
68
@@ -157,10 +90,8 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Update \
157
90
"ranks" : [
158
91
{
159
92
"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" ,
164
95
"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}" ,
165
96
"sort_order" : 3 ,
166
97
}
@@ -178,9 +109,7 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Update \
178
109
{
179
110
"id" : 319 ,
180
111
"title" : " NAME" ,
181
- "title_en" : " " ,
182
- "description" : " DESCRIPTIONs" ,
183
- "description_en" : " " ,
112
+ "description" : " DESCRIPTION" ,
184
113
"company_id" : 2 ,
185
114
"company_type" : 2 ,
186
115
"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.
209
138
| --------- | ---- | -------- | ----------- |
210
139
| ` ranks ` | array | yes | Array of groups to update. |
211
140
| ` 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. |
216
143
| ` 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 . |
218
145
219
146
### Response
220
147
@@ -224,10 +151,8 @@ This endpoint updates the groups in the company.
224
151
| ` message ` | string | Error message if ` status ` is false. |
225
152
| ` data ` | array | Array of the updated groups. |
226
153
| ` 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. |
231
156
| ` data[].company_id ` | integer | The id of the company. |
232
157
| ` data[].company_type ` | integer | The type of the company. |
233
158
| ` data[].permissions ` | string | JSON string of the permissions of the group. For more information, see [ Permissions] ( #permissions ) . |
0 commit comments