File tree Expand file tree Collapse file tree 5 files changed +41
-12
lines changed Expand file tree Collapse file tree 5 files changed +41
-12
lines changed Original file line number Diff line number Diff line change 3
3
title : Account Operations - System Admin
4
4
description : |-
5
5
The official SeaTable API Reference (OpenAPI 3.0). - Part 'User Account Operations'.
6
- version : ' 11'
6
+ version : ' 11.0 '
7
7
servers :
8
8
- url : https://{server}
9
9
variables :
@@ -263,6 +263,15 @@ components:
263
263
org_name :
264
264
type : string
265
265
description : organization name
266
+
267
+ org_quota :
268
+ type : integer
269
+ description : Max quota an organization can use.
270
+
271
+ org_member_limit :
272
+ type : integer
273
+ description : Max user numbers an organization can use. The 'ORG_MEMBER_QUOTA_ENABLED' should be set to true in the config file.
274
+
266
275
267
276
268
277
# response schemas
@@ -2810,6 +2819,11 @@ paths:
2810
2819
$ref : ' #/components/schemas/email'
2811
2820
owner_password :
2812
2821
$ref : ' #/components/schemas/password'
2822
+ quota :
2823
+ $ref : ' #/components/schemas/org_quota'
2824
+ member_limit :
2825
+ $ref : ' #/components/schemas/org_member_limit'
2826
+
2813
2827
responses :
2814
2828
' 200 ' :
2815
2829
description : OK
Original file line number Diff line number Diff line change 3
3
title : authentication
4
4
description : |-
5
5
The official Seafile API Reference
6
- version : ' 11'
6
+ version : ' 11.0 '
7
7
tags :
8
8
- name : Account-Token
9
9
description : Access library with Account-Token
10
10
- name : Repo-Token
11
- description : Access library with Repo- Token
11
+ description : Access library with Repo API Token
12
12
servers :
13
13
- url : https://{server}
14
14
variables :
@@ -28,6 +28,17 @@ components:
28
28
scheme : bearer
29
29
description : This is the [API-Token](/reference/authentication).
30
30
bearerFormat : API-Token
31
+
32
+ parameters :
33
+ X-SEAFILE-OTP :
34
+ name : X-SEAFILE-OTP
35
+ in : header
36
+ schema :
37
+ type : string
38
+ pattern : ' ^\d{6}$'
39
+ description : >
40
+ Two-factor token (usually generated with a mobile app like the
41
+ google authenticator), optional, only needed if 2FA is activated for your account.
31
42
32
43
schemas :
33
44
AccountTokenResponse :
71
82
summary : Obtain account token
72
83
tags :
73
84
- Account-Token
74
- description : Obtain account token with username and password
85
+ description : |
86
+ Generate an *Account-Token* with your username and password. This Account-Token is necessary for all the following account operations.
87
+ Use the optional paramater if two-factor-authentication (2FA) is activated for your account.
75
88
security : []
76
89
requestBody :
77
90
content :
@@ -88,6 +101,8 @@ paths:
88
101
required :
89
102
- username
90
103
- password
104
+ parameters :
105
+ - $ref : " #/components/parameters/X-SEAFILE-OTP"
91
106
responses :
92
107
' 200 ' :
93
108
description : OK
Original file line number Diff line number Diff line change 3
3
title : Ping and Server Info
4
4
description : >-
5
5
The official Seafile API Reference (OpenAPI 3.0) - Part 'Ping and Server Info'.
6
- version : ' 11'
6
+ version : ' 11.0 '
7
7
servers :
8
8
- url : ' https://{server}'
9
9
variables :
Original file line number Diff line number Diff line change 3
3
title : Via Repo-Token
4
4
description : |-
5
5
Access library Via Repo-Token
6
- version : ' 11'
6
+ version : ' 11.0 '
7
7
tags :
8
8
- name : Via Repo-Token
9
9
description : Access library Via Repo-Token
Original file line number Diff line number Diff line change 3
3
title : Account Operations - User
4
4
description : |-
5
5
The official SeaTable API Reference (OpenAPI 3.0). - Part 'User Account Operations'.
6
- version : ' 11'
6
+ version : ' 11.0 '
7
7
servers :
8
8
- url : https://{server}
9
9
variables :
@@ -7856,7 +7856,7 @@ paths:
7856
7856
/api/v2.1/repos/batch/ :
7857
7857
post :
7858
7858
tags :
7859
- - Share batch operation
7859
+ - Share to user/group
7860
7860
summary : Batch share libraries to user/group
7861
7861
description : Batch sharing existing libraries with user/group.
7862
7862
security :
@@ -7925,7 +7925,7 @@ paths:
7925
7925
/api2/repos/{repo_id}/dir/shared_items/p={path} :
7926
7926
put :
7927
7927
tags :
7928
- - Share folder
7928
+ - Share to user/group
7929
7929
summary : Share a folder
7930
7930
description : |-
7931
7931
Share folders with other users and groups.
@@ -8000,7 +8000,7 @@ paths:
8000
8000
/api/v2.1/shared-folders/ :
8001
8001
get :
8002
8002
tags :
8003
- - Share folder
8003
+ - Share to user/group
8004
8004
summary : List shared folders
8005
8005
description : Return all shared folder information.
8006
8006
security :
@@ -8066,7 +8066,7 @@ paths:
8066
8066
/api2/repos/{repo_id}/dir/shared_items/?p={path} :
8067
8067
post :
8068
8068
tags :
8069
- - Share folder
8069
+ - Share to user/group
8070
8070
summary : Update folder share permission
8071
8071
description : |-
8072
8072
Update shared folder permissions.
@@ -8104,7 +8104,7 @@ paths:
8104
8104
8105
8105
delete :
8106
8106
tags :
8107
- - Share folder
8107
+ - Share to user/group
8108
8108
summary : Remove the specified shared folder
8109
8109
description : |-
8110
8110
- username, necessary if share_type is user
You can’t perform that action at this time.
0 commit comments