-
Notifications
You must be signed in to change notification settings - Fork 3
/
team_admin_account_operations.yaml
1809 lines (1763 loc) · 59 KB
/
team_admin_account_operations.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
title: Account Operations - Team admin
description: >-
The official SeaTable API Reference (OpenAPI 3.0).
version: "5.1"
servers:
- url: "https://{server}"
variables:
server:
default: cloud.seatable.io
x-readme:
explorer-enabled: true
metrics-enabled: false
proxy-enabled: false
# the error messages, if query params are missing, are strange and misleading.
components:
securitySchemes:
AccountTokenAuth:
type: http
scheme: bearer
description: This is the [Account-Token](/reference/authentication).
parameters:
#=======================Query parameters=======================#
page:
name: page
description: The page number you want to start showing the entries. If no value is provided, 1 will be used.
in: query
schema:
type: integer
minimum: 1
example: 1
required: false
per_page:
name: per_page
in: query
schema:
type: integer
minimum: 1
description: The number of results that should be returned. If no value is provided, 25 results will be returned.
example: 25
required: false
query_base_name:
name: query
in: query
schema:
type: string
description: Exact name or a part of the name of the base, case insensitive.
example: "Example"
ignore_asset:
name: ignore_asset
in: query
schema:
type: boolean
example: "false"
description: Set this to `true` to export the base without assets. Default is `false`.
#=======================Path parameters=======================#
org_id:
name: org_id
in: path
schema:
type: integer
minimum: 1
required: true
description: >-
The ID of your team/organization. Numeric. Get it from [Get Team](/reference/getteaminfo). Contact your team admin, if you
are not the admin.
example: 1
base_id:
name: base_id
in: path
schema:
type: string
required: true
description: The ID of the base. Don't mix this up with the base_uuid!
example: "000"
base_uuid:
name: base_uuid
in: path
schema:
type: string
pattern: '^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$'
required: true
description: The unique identifier of a base. Sometimes also called dtable_uuid.
example: 5c264e76-0e5a-448a-9f34-580b551364ca
external_link_token:
name: external_link_token
in: path
schema:
type: string
pattern: "^[0-9a-f]{20}$"
required: true
example: "d6d006b319ca4d2aa060"
view_external_link_token:
name: view_external_link_token
in: path
schema:
type: string
pattern: "^[0-9a-f]{20}$"
required: true
example: "d6d006b319ca4d2aa060"
invite_link_token:
name: invite_link_token
in: path
schema:
type: string
pattern: "^[0-9a-f]{20}$"
required: true
example: "0366b8995d7f47d8eu3t"
group_id:
name: group_id
in: path
schema:
type: integer
minimum: 1
required: true
description: >-
The ID of the group to query. Can be retrieved from the call [List Groups in Your Team](/reference/listgroups-1).
example: "1"
user_id:
name: user_id
description: The unique user id in the form [email protected]. This is not the email address of the user.
in: path
schema:
type: string
pattern: "^[a-f0-9]{32}(@auth.local)$"
required: true
example: [email protected]
schemas:
team_admin_permission:
type: string
enum: ["", "r", "rw"]
team_admin_password:
type: string
description: User's password to login.
example: "pw12345678"
team_admin_expire_days:
type: integer
example: 20
team_admin_group_name:
type: string
description: The name of the group.
example: "Sample Group"
required:
- group_name
team_admin_group_owner:
type: string
description: >-
The `user_id` of the owner of the group. Optional. If left
blank, the newly added group will not be visible to anyone
but still operatable.
example: "[email protected]"
team_admin_user_id:
type: string
description: The `user_id`
example: "[email protected]"
team_admin_user_ids:
type: string
example: "[email protected], [email protected]"
team_admin_email:
type: string
description: User's contact email to login.
example: [email protected]
team_admin_name:
type: string
description: User's full name.
example: Mai Thai
team_admin_contact_email:
type: string
description: User's contact email.
example: [email protected]
team_admin_is_active:
type: boolean
description: Determines the current status of this account. An inactive account can not login anymore.
team_admin_is_staff:
type: boolean
description: Determines if the user account has access to the system administration area.
team_admin_with_workspace:
type: boolean
description: >-
If a workspace should be automatically created for the user.
Optional. `false` by default.
example: "true"
team_admin_id_in_org:
type: string
description: >-
The team ID of the user, could be a student's ID or employee
ID. String.
example: Student001
team_admin_quota_total:
type: integer
description: Update their total quota in MB.
example: "3"
team_admin_group_id:
type: string
description: The ID of the group you'd like to move.
example: "1"
anchor_group_id:
type: string
description: >-
The ID of the group where you'd like your group to be moved
under.
example: "1"
to_last:
type: boolean
description: >-
Whether you'd like to move your group to the bottom of the
list (`true`). `false` by default.
example: "true"
enable_force_2fa:
type: boolean
description: >-
if the 2-factor-authentication is forced (`true` or
`false`).
example: "true"
enable_new_user_email:
type: boolean
description: >-
if newly added users will get a system email (`true` or
`false`).
example: "true"
enable_external_user_access_invite_link:
type: boolean
description: >-
if external users can access bases via invite links (`true`
or `false`).
example: "false"
enable_member_modify_name:
type: boolean
description: >-
if members are allowed to change their names (`true` or
`false`).
example: "false"
upload_file:
type: object
properties:
file:
type: string
description: >-
The image you'd like to upload from your local drive. Only .jpg, .jpeg, .gif or .png are allowed.
format: binary
new_org_name:
type: string
description: The new name of your team.
example: SeaTable GmbH
force_2fa:
type: integer
enum: [0, 1]
metadata_url:
type: string
description: "URL pointing to the metadata of your Identity Provider (IdP)."
example: "https://<URL-of-your-idp>/metadata.yml"
domain:
type: string
description: "Domain that should be connected to your SeaTable Team. Only email addresses with this domain will be redirected to your Identity Provider (IdP)."
example: "example.com"
idp_certificate:
type: string
description: "Provide the certificate from your IdP for this service."
example: "-----BEGIN CERTIFICATE-----xxxxxxxxxxxxxxxxxxxx-----END CERTIFICATE-----"
paths:
# Users
/api/v2.1/org/{org_id}/admin/users/:
get:
tags:
- Users
summary: List Users (Team)
operationId: listTeamUsers
description: List all the users in the organization, or only the admins/non-admins.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/page"
- $ref: "#/components/parameters/per_page"
- $ref: "#/components/parameters/org_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
user_list:
- email: [email protected]
name: Jasmin Tee
contact_email: [email protected]
quota_usage: 0
quota_total: -2
id_in_org: ""
last_login: "2021-03-02T12:58:29+00:00"
id: 123
is_active: true
ctime: "2020-11-18T12:30:31+00:00"
self_usage: 0
quota: -2
is_org_admin: true
post:
tags:
- Users
summary: Add User
operationId: addUser
description: >-
Add a new user in the team (organization).
In the request body, define the new user's `email`, `name` and
`password`.
SeaTable does not automatically create a workspace for a newly added
user: the `with_workspace` parameter is `false` by default. If you would
like your new user to have a workspace when they are added (so that they
can start operating workspaces and bases right away with API requests),
make sure you set `true` for this parameter.
Otherwise, their workspace will only be created when they login to the
SeaTable web interface for the first time.
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
email:
$ref: "#/components/schemas/team_admin_email"
name:
$ref: "#/components/schemas/team_admin_name"
password:
$ref: "#/components/schemas/team_admin_password"
with_workspace:
$ref: "#/components/schemas/team_admin_with_workspace"
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
id: 125
is_active: true
ctime: "2021-03-02T13:02:46+00:00"
name: Mai Thai
email: [email protected]
contact_email: [email protected]
last_login: null
self_usage: 0
quota: -2
workspace_id: 999
/api/v2.1/org/{org_id}/admin/users/{user_id}/:
put:
tags:
- Users
summary: Update User
operationId: updateUser
description: >-
Update a user's details. See the parameter list for the detailed
description of each entry.
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
name:
$ref: "#/components/schemas/team_admin_name"
contact_email:
$ref: "#/components/schemas/team_admin_contact_email"
is_staff:
$ref: "#/components/schemas/team_admin_is_staff"
is_active:
$ref: "#/components/schemas/team_admin_is_active"
quota_total:
$ref: "#/components/schemas/team_admin_quota_total"
id_in_org:
$ref: "#/components/schemas/team_admin_id_in_org"
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/user_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
email: [email protected]
name: Stefan
contact_email: [email protected]
quota_usage: 144328135
quota_total: 3000000
is_active: true
id: 253
ctime: "2020-11-18T12:43:22+00:00"
id_in_org: Student001
last_login: "2022-03-26T15:38:18+00:00"
self_usage: 144328135
quota: 3000000
delete:
tags:
- Users
summary: Delete User
operationId: deleteUser
description: >-
Delete a user by their `user_id` permanently. When you delete a user,
their bases are automatically moved into the organization's trash bin.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/user_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
success: true
/api/v2.1/org/{org_id}/admin/users/{user_id}/set-password/:
put:
tags:
- Users
summary: Reset User Password
operationId: resetUserPassword
description: >-
Reset the password of a user and get a new password. The new password
will be automatically sent to the user per email.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/user_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
new_password: 4nhCOEU3fl
/api/v2.1/org/{org_id}/admin/users/{user_id}/two-factor-auth/:
put:
tags:
- Users
summary: Enforce 2FA
operationId: enforceTwofactor
description: >-
As the team administrator, you can force each team member to use
2-factor authentication (2FA).
When the value of `force_2fa` is `1` in this request, the member will be
requested to activate 2FA by scanning a QR code next time they log in.
To cancel enforcing them to use 2FA, change the value to `0` and send
this request again.
This request is to be distinguished from the next request, because
cancelling the enforcement doesn't necesssarily [Disable 2FA for A User
in Team](/reference/disabletwofactor-1), which serves a different purpose.
requestBody:
content:
application/json:
schema:
type: object
properties:
force_2fa:
$ref: "#/components/schemas/force_2fa"
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/user_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
success: true
delete:
tags:
- Users
summary: Disable 2FA
operationId: disableTwoFactor
description: >-
If a user in your team has lost their phone or deleted the authenticator
App by accident, they cannot log in to SeaTable anymore if 2FA is
enabled for them. In this case, you as the team administrator can
disable 2FA for them.
Again, this is to be distinguished from the request [Enforce 2FA for A
User in Team](/reference/enforcetwofactor-1) when you use `force_2fa = 0`, which only cancels the
enforcement of 2FA but doesn't necessarily disable it for them.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/user_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
success: true
# Bases
/api/v2.1/org/{org_id}/admin/dtables/:
get:
tags:
- Bases
summary: List Bases (Team)
operationId: listBases
description: >-
List all the bases in the current organization.
The returned `id` value is the ID of the base, to be distinguished from
the base's `base_uuid`. Details see the **SeaTable API Parameter
Reference**.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/page"
- $ref: "#/components/parameters/per_page"
- $ref: "#/components/parameters/org_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
dtable_list:
- id: 158
workspace_id: 304
uuid: 12345678-7e27-46a8-8b18-6cc6f3db2057
name: Test base
creator: Jasmin Tee
modifier: Jasmin Tee
created_at: "2020-11-18T12:31:29+00:00"
updated_at: "2021-03-02T10:29:03+00:00"
color: null
text_color: null
icon: null
owner: Jasmin Tee
rows_count: 72
- id: 160
workspace_id: 305
uuid: 87654321-d895-402f-9718-a85f26c65d99
name: Project Tracker
creator: Jasmin Tee
modifier: Jasmin Tee
created_at: "2020-11-18T12:45:06+00:00"
updated_at: "2020-11-18T12:45:06+00:00"
color: null
text_color: null
icon: null
owner: testgroup (group)
rows_count: 46
count: 16
/api/v2.1/org/{org_id}/admin/dtables/{base_id}/:
delete:
tags:
- Bases
summary: Delete Base
operationId: deleteBase
description: >-
Delete a base. This base will be put into the organization's trash bin,
and permanently deleted automatically after 30 days.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/base_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
success: true
/api/v2.1/org/{org_id}/admin/trash-dtables/:
get:
tags:
- Bases
summary: List Trash Bases
operationId: listTrashBases
description: List the bases in the organization's trash bin.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/page"
- $ref: "#/components/parameters/per_page"
- $ref: "#/components/parameters/org_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
dtable_list:
- id: 135
workspace_id: 304
uuid: 98765432-6db6-4950-abb9-28832c7471a0
name: Old data
creator: Jasmin Tee
modifier: Jasmin Tee
created_at: "2020-12-28T18:04:05+00:00"
updated_at: "2020-12-28T18:04:05+00:00"
color: null
text_color: null
icon: null
deleted: true
delete_time: "2021-03-02T10:40:44+00:00"
owner: Jasmin Tee
count: 1
delete:
tags:
- Bases
summary: Clear Team Trash Bin
operationId: clearTeamTrashBin
description: >-
Clear the team trash bin. All the bases there will be removed
permanently and cannot be restored any more.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
success: true
/api/v2.1/org/{org_id}/admin/trash-dtables/{base_id}/:
put:
tags:
- Bases
summary: Restore Base from Trash
operationId: restoreBaseFromTrash
description: Restore a base from the trash bin.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/base_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
success: true
/api/v2.1/org/{org_id}/admin/search-dtables/:
get:
tags:
- Bases
summary: Search Base
operationId: searchBase
description: >-
By giving the exact or fuzzy match of the name of a base, you can find a
base or all the bases that fit to that search criteria. The search is
case-insensitive.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/query_base_name"
- $ref: "#/components/parameters/org_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
results:
- id: 724
workspace_id: 204
uuid: 12345678-ba46-4c07-8116-d237bdeb35a3
name: Termine
created_at: "2022-01-12T10:30:01+00:00"
updated_at: "2022-03-11T12:02:22+00:00"
color: "#972CB0"
text_color: null
icon: icon-leave-record
is_encrypted: false
org_id: 176
email: [email protected]
group_id: -1
owner: Michael Jackson
owner_deleted: false
rows_count: 23
# Groups
/api/v2.1/org/{org_id}/admin/groups/:
get:
tags:
- Groups
summary: List Groups (Team)
operationId: listGroups
description: >-
List all the groups existing in your team (organization). In the
response, each group's ID, name, created time, name,creator etc. are
returned. The `page_next` value indicates if there is a next page or
not.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/page"
- $ref: "#/components/parameters/per_page"
- $ref: "#/components/parameters/org_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
groups:
- id: 51
group_name: Sales Group
ctime: "2020-11-19T08:14:52+00:00"
creator_name: Michael Jackson
creator_email: [email protected]
creator_contact_email: [email protected]
size: 98842
- id: 52
group_name: Marketing Group
ctime: "2020-11-19T08:18:03+00:00"
creator_name: Ginger Ale
creator_email: [email protected]
creator_contact_email: [email protected]
size: 162010
page: 1
per_page: 2
page_next: true
post:
tags:
- Groups
summary: Add Group
operationId: addGroup
description: >-
Add a group in the current organization and assign a group name, and a
group owner.
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
group_name:
$ref: "#/components/schemas/team_admin_group_name"
group_owner:
$ref: "#/components/schemas/team_admin_group_owner"
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
id: 3
group_name: Test group
ctime: "2021-03-02T11:10:53+00:00"
creator_email: [email protected]
creator_name: Jasmin Tee
creator_contact_email: [email protected]
/api/v2.1/org/{org_id}/admin/groups/{group_id}/:
get:
tags:
- Groups
summary: Get Group
operationId: getGroup
description: Get the specific information of one group by its ID.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/group_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
id: 1
group_name: Test Group
ctime: "2020-11-19T08:14:52+00:00"
creator_email: [email protected]
creator_name: Michael Jackson
creator_contact_email: [email protected]
put:
tags:
- Groups
summary: Update Group
operationId: updateGroup
description: >-
Use this request to rename, and/or change owner of a group.
In the request body, both parameters are optional. Only use the ones
that you need to update:
* `new_owner` is the new owner of the group, include the user's ID
here. If you don't want to change the owner, remove this parameter
because if you enter the current owner's ID here, you'll get an error
"User xxx is already group owner".
* `new_group_name` is the new name of your group. If you don't want to
change the name, remove shi parameter because if you enter the current
group name here you'll get an error "There is already a group with that
name".
requestBody:
content:
application/json:
schema:
type: object
properties:
new_owner:
$ref: "#/components/schemas/team_admin_user_id"
new_group_name:
$ref: "#/components/schemas/team_admin_group_name"
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/group_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
id: 1
group_name: Group New
ctime: "2020-11-19T08:14:52+00:00"
creator_email: [email protected]
creator_name: Michael Jackson
creator_contact_email: [email protected]
size: 98842
delete:
tags:
- Groups
summary: Delete Group
operationId: deleteGroup
description: Delete a group with its ID.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/group_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
success: true
/api/v2.1/org/{org_id}/admin/groups/{group_id}/dtables/:
get:
tags:
- Groups
summary: List Group Bases
operationId: listGroupBases
description: List all the bases in a specific group in your team.
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/group_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
tables:
- id: 4
workspace_id: 2
uuid: 12345678-30d9-48a2-a5d7-09cd8ffdda4b
name: CRM & Sales
creator: Ginger Ale
owner: Group New
creator_email: [email protected]
modifier: Ginger Ale
created_at: "2021-03-08T13:04:50+00:00"
updated_at: "2021-03-08T13:04:50+00:00"
rows_count: 186
/api/v2.1/groups/move-group/:
put:
tags:
- Groups
summary: Re-order Your Groups
operationId: orderGroups
description: >-
On the **web user interface**, you can have an overview of all the
groups you are currently in on the left-hand side navigation when you
click on "Bases".
Perhaps you'd like to re-order these groups. Besides moving them
manually with your mouse on the interface, you can also use this API
request to do the same job.
Here's how it works: In the request form, give the `group_id` of the
group you'd like to move and tell the system where to move it to: under
which group ( `anchor_group_id` ). If you are just moving it to the
bottom of the list, let `to_last` be `true` .
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
group_id:
$ref: "#/components/schemas/team_admin_group_id"
anchor_group_id:
$ref: "#/components/schemas/anchor_group_id"
to_last:
$ref: "#/components/schemas/to_last"
security:
- AccountTokenAuth: []
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example:
success: true
/api/v2.1/org/{org_id}/admin/groups/{group_id}/members/:
get:
tags:
- Groups
summary: List Group Members
operationId: listGroupMembers
description: List the members of a group in the current team (organization).
security:
- AccountTokenAuth: []
parameters:
- $ref: "#/components/parameters/org_id"
- $ref: "#/components/parameters/group_id"
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
example: