@@ -15,10 +15,8 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Create \
15
15
{
16
16
"ranks" : [
17
17
{
18
- "title" : " name of group in danish/default" ,
19
- "title_en" : " name of group in english" ,
20
- "description" : " group description in danish/default" ,
21
- "description_en" : " group description in english" ,
18
+ "title" : " name of group" ,
19
+ "description" : " group description" ,
22
20
"sort_order" : 3 ,
23
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}"
24
22
}
@@ -34,10 +32,8 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Create \
34
32
"message" : null ,
35
33
"data" : [
36
34
{
37
- "title" : " name of group in danish/default" ,
38
- "title_en" : " name of group in english" ,
39
- "description" : " group description in danish/default" ,
40
- "description_en" : " group description in english" ,
35
+ "title" : " name of group" ,
36
+ "description" : " group description" ,
41
37
"company_id" : 2 ,
42
38
"company_type" : 2 ,
43
39
"sort_order" : 3 ,
@@ -65,10 +61,8 @@ This endpoint creates a new group in the company.
65
61
| Parameter | Type | Required | Description |
66
62
| --------- | ---- | -------- | ----------- |
67
63
| ` ranks ` | array | yes | Array of groups to create. |
68
- | ` ranks[].title ` | string | yes | The name of the group in danish or the name of the group if ` title_en ` is not set. |
69
- | ` ranks[].title_en ` | string | no | The name of the group in english. |
70
- | ` ranks[].description ` | string | no | The description of the group in danish or the description of the group if ` description_en ` is not set. |
71
- | ` 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. |
72
66
| ` ranks[].sort_order ` | integer | yes | The sort index of the group. |
73
67
| ` ranks[].permissions ` | string | yes | JSON string of the permissions of the group. For more information, see [ Permissions] ( #permissions ) . |
74
68
@@ -96,10 +90,8 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Update \
96
90
"ranks" : [
97
91
{
98
92
"id" : 319 ,
99
- "title" : " name of group in danish/default" ,
100
- "title_en" : " name of group in english" ,
101
- "description" : " group description in danish/default" ,
102
- "description_en" : " group description in english" ,
93
+ "title" : " TITLE" ,
94
+ "description" : " DESCRIPTION" ,
103
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}" ,
104
96
"sort_order" : 3 ,
105
97
}
@@ -117,9 +109,7 @@ curl https://api.simplyprint.io/{id}/account/settings/rank/Update \
117
109
{
118
110
"id" : 319 ,
119
111
"title" : " NAME" ,
120
- "title_en" : " " ,
121
- "description" : " DESCRIPTIONs" ,
122
- "description_en" : " " ,
112
+ "description" : " DESCRIPTION" ,
123
113
"company_id" : 2 ,
124
114
"company_type" : 2 ,
125
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}" ,
@@ -148,12 +138,10 @@ This endpoint updates the groups in the company.
148
138
| --------- | ---- | -------- | ----------- |
149
139
| ` ranks ` | array | yes | Array of groups to update. |
150
140
| ` ranks[].id ` | integer | yes | The id of the group to update. |
151
- | ` ranks[].title ` | string | no | The name of the group in danish or the name of the group if ` title_en ` is not set. |
152
- | ` ranks[].title_en ` | string | no | The name of the group in english. |
153
- | ` ranks[].description ` | string | no | The description of the group in danish or the description of the group if ` description_en ` is not set. |
154
- | ` 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. |
155
143
| ` ranks[].permissions ` | string | no | JSON string of the permissions of the group. For more information, see [ Permissions] ( #permissions ) . |
156
- | ` ranks[].company_type ` | integer | no | The type of the company . |
144
+ | ` ranks[].sort_order ` | integer | no | The sort index of the group . |
157
145
158
146
### Response
159
147
@@ -163,10 +151,8 @@ This endpoint updates the groups in the company.
163
151
| ` message ` | string | Error message if ` status ` is false. |
164
152
| ` data ` | array | Array of the updated groups. |
165
153
| ` data[].id ` | integer | The id of the group. |
166
- | ` data[].title ` | string | The name of the group in danish or the name of the group if ` title_en ` is not set. |
167
- | ` data[].title_en ` | string | The name of the group in english. |
168
- | ` data[].description ` | string | The description of the group in danish or the description of the group if ` description_en ` is not set. |
169
- | ` 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. |
170
156
| ` data[].company_id ` | integer | The id of the company. |
171
157
| ` data[].company_type ` | integer | The type of the company. |
172
158
| ` data[].permissions ` | string | JSON string of the permissions of the group. For more information, see [ Permissions] ( #permissions ) . |
0 commit comments