-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfullapi.yaml
More file actions
4355 lines (4332 loc) · 137 KB
/
fullapi.yaml
File metadata and controls
4355 lines (4332 loc) · 137 KB
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
# this the outline of the ShareFIle Macro API.
swagger: '2.0'
info:
title: Cloud Services API
description: v3 API
version: "3.0.1"
# the domain of the service
host: services-api.cloud.com:8443
# array of all schemes that your API supports
schemes:
- https
# will be prefixed to all paths
basePath: /
produces:
- application/json
parameters:
Authorization:
name: Authorization
in: header
description: Bearer authorization token
required: false
type: string
Cookie:
name: Cookie
in: header
description: Cookie information returned on previous request (with syntax 'Ado=xxx...xxx;path=/;domain=.ddns.net')
required: false
type: string
code:
name: code
in: query
description: Request code (requires subdomain)
required: false
type: string
subdomain:
name: subdomain
in: query
description: Subdomain of sharefile account (used with request code or username/password)
required: false
type: string
username:
name: username
in: query
description: User name (requires subdomain and password)
required: false
type: string
password:
name: password
in: query
description: Password (requires subdomain and username)
required: false
type: string
paths:
/files/{File}:
post:
summary: Upload a file
description: Upload a file to target folder (for example into path /files/My Files & Folders/new.txt or /files/fo0678ac-aaaa-aaaa-bbbb-ffffffffffff/new.txt). The file contents are either passed in the body or referred to by some remote URL.
consumes:
- text/plain
parameters:
- name: File
in: path
description: Unique file name in folder path or folder id
required: true
type: string
- name: url
in: query
description: Remote URL of a file to be used as the source of this new file
required: false
type: string
- name: body
in: body
description: Contents of the file to be uploaded
required: false
schema:
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Files
responses:
200:
description: Returns file metadata
schema:
$ref: '#/definitions/Files'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
get:
summary: Get a file
description: This endpoint allows you to retrieve files as well as file metadata
parameters:
- name: File
in: path
description: Unique file / folder ID or path
required: true
type: string
- name: metadata
in: query
description: Retrieve only file metadata instead of contents (default is true for folders and false for files)
required: false
type: boolean
format: boolean
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Files
responses:
200:
description: A download link for a file or file metadata
schema:
$ref: '#/definitions/Files'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
patch:
summary: Update file metadata
description: Using this endpoint you can update the information about a file
parameters:
- name: File
in: path
description: This can either be a unique id or a path to the file
required: true
type: string
- name: name
in: query
description: Unique file / folder ID or path
required: false
type: string
- name: fileName
in: query
description: Update display name of file
required: false
type: string
- name: description
in: query
description: Update description of the file
required: false
type: string
- name: parentIdentifier
in: query
description: Change location of file by providing new parent folder
required: false
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Files
responses:
200:
description: Returns file metadata
schema:
$ref: '#/definitions/Files'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
delete:
summary: Delete file
description: Remove a file from ShareFile
parameters:
- name: File
in: path
description: Unique file / folder ID or path
required: true
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Files
responses:
200:
description: OK
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/files/:
get:
summary: Get a list of files in root directory
description: This endpoint allows you to retrieve root file list
parameters:
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Files
responses:
200:
description: Returns a nested list of file metadata
schema:
$ref: '#/definitions/Files'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/shares/{FileIdentifier}/:
post:
summary: Create a new share to either send or receive files
description: Shares allows sharefile users to give access to files and folders to other users. Shares are used to "Send" or "Request" files to anonymous or named users, without giving the target direct access to the user folders.Shares contain policies - such as expiration, maximum number of downloads, authentication options.
operationId: addShare
parameters:
- name: Share
in: body
description: Share information
required: true
schema:
$ref: '#/definitions/Shares'
- name: FileIdentifier
in: path
description: This is the unique id of the file or folder to share
required: true
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Shares
responses:
200:
description: Share information
schema:
$ref: '#/definitions/Shares'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/shares/:
get:
summary: Get all shares for a user
description: Retrieve all shares that have been create by the authenticated user
parameters:
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Shares
responses:
200:
description: Share information
schema:
$ref: '#/definitions/Shares'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/shares/{ShareIdentifier}:
get:
summary: Get share information of a specific share
description: Retrieve a specific share by its identifier
parameters:
- name: ShareIdentifier
in: path
description: This is the unique id of the share
required: true
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Shares
responses:
200:
description: Share information
schema:
$ref: '#/definitions/Shares'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
patch:
summary: Update share
description: Update a share to either send or receive files
parameters:
- name: ShareIdentifier
in: path
description: Unique identifier of the share
required: true
type: string
- name: Share
in: body
description: Share information
required: true
schema:
$ref: '#/definitions/Shares'
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Shares
responses:
200:
description: Share information
schema:
$ref: '#/definitions/Shares'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
delete:
summary: Delete share
description: Remove a share from ShareFile
parameters:
- name: ShareIdentifier
in: path
description: Unique identifier for the share
required: true
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Shares
responses:
200:
description: OK
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/shares/{ShareIdentifier}/Recipients/:
get:
summary: Get recipients of a share
description: Retrieve the list of Recipients in the share. Recipients represent the target users of the Share, containing access information, such as number of times that user downloaded files from the share. Each Recipient is identified by an Alias, which is an unique ID given to each user - allowing tracking of downloads for non-authenticated users.
parameters:
- name: ShareIdentifier
in: path
description: This is the unique id of the share
required: true
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Shares
responses:
200:
description: Share information
schema:
$ref: '#/definitions/Recipients'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
post:
summary: Add a recipient to a share
description: Creates a recipient user for a share that requires user information
parameters:
- name: ShareIdentifier
in: path
description: This is the unique id of the share
required: true
type: string
- name: Recipient
in: body
description: User Information
required: true
schema:
$ref: '#/definitions/Recipients'
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Shares
responses:
200:
description: Share information
schema:
$ref: '#/definitions/Recipients'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/shares/{ShareIdentifier}/Items/:
get:
summary: Get list of items of a share
description: Retrieve the list of Items (files and folders) in the Send Share.
parameters:
- name: ShareIdentifier
in: path
description: This is the unique id of the share
required: true
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Shares
responses:
200:
description: Share information
schema:
$ref: '#/definitions/Items'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/shares/{ShareIdentifier}/Download/:
get:
summary: Download items of a share
description: Downloads items from the Share. The default action will download all Items in the Share. If a Share has a single item, the download attachment name will use the item name. Otherwise, the download will contain a ZIP archive containing all files and folders in the share, named Files.zip.
To download Shares that require authentication, make sure this request is authenticated. To download shares that require require user information, provide the Name, Email and Company parameters in the URI query. Anyone can download files from anonymous shares.
You can also download individual Items in the Share. Use the Share(id)/Items(id)/Download action. The item ID must be a top-level item in the Share - i.e., you cannot download or address files contained inside a shared folder.
parameters:
- name: ShareIdentifier
in: path
description: This is the unique id of the share
required: true
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Shares
responses:
200:
description: Share information
schema:
$ref: '#/definitions/Items'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/users/:
get:
summary: With the users endpoint you can add and modify users and their capabilities
description: Get list of users based on type
parameters:
- name: userType
in: query
type: string
description: Client or employee user or none to get all
required: false
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Users
responses:
200:
description: Information for the given user
schema:
$ref: '#/definitions/Users'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
post:
summary: Create user
description: Create a new user
parameters:
- name: Users
in: body
description: User information
required: true
schema:
$ref: '#/definitions/Users'
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Users
responses:
200:
description: Information about the given user
schema:
$ref: '#/definitions/Users'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/users/{UserIdentifier}:
get:
summary: User information
description: The user endpoint returns data about a user
parameters:
- name: UserIdentifier
in: path
type: string
description: User id is the unique identifier for a user
required: true
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Users
responses:
200:
description: Information about the given user
schema:
$ref: '#/definitions/Users'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
patch:
summary: Update user
description: Update a user
parameters:
- name: UserIdentifier
in: path
description: Unique identifier for the user
required: true
type: string
- name: User
in: body
description: User information
required: true
schema:
$ref: '#/definitions/Users'
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Users
responses:
200:
description: Information about the given user
schema:
$ref: '#/definitions/Users'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
delete:
summary: Delete user
description: |
Remove a user from ShareFile
parameters:
- name: UserIdentifier
in: path
description: Unique identifier for the user
required: true
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Users
responses:
200:
description: OK
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/users/{UserIdentifier}/permissions/:
get:
summary: Get permissions
description: View full list of permissions
parameters:
- name: UserIdentifier
in: path
description: Unique identifier for the user
required: true
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Users
responses:
200:
description: User permission information
schema:
$ref: '#/definitions/UserPermissions'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
post:
summary: Create permissions
description: Create new permissions for the user
parameters:
- name: UserIdentifier
in: path
description: Unique identifier for the user
required: true
type: string
- name: UserPermission
in: body
description: User Permission Information
required: true
schema:
$ref: '#/definitions/UserPermissions'
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Users
responses:
200:
description: User permission information
schema:
$ref: '#/definitions/UserPermissions'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
patch:
summary: Add permissions
description: Add a permission to the user
parameters:
- name: UserIdentifier
in: path
description: Unique identifier for the user
required: true
type: string
- name: UserPermission
in: body
description: User Permission Information
required: true
schema:
$ref: '#/definitions/UserPermissions'
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Users
responses:
200:
description: User permission information
schema:
$ref: '#/definitions/UserPermissions'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
delete:
summary: Remove permissions
description: Take away permissions from specific user
parameters:
- name: UserIdentifier
in: path
description: Unique Identifier for the user
required: true
type: string
- name: UserPermissions
in: body
description: User Permission Information
required: true
schema:
$ref: '#/definitions/UserPermissions'
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Users
responses:
200:
description: User permission information
schema:
$ref: '#/definitions/UserPermissions'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/groups/:
get:
description: Groups make it easy to assign permissions to files and folders. Instead of having to create a new access control for each user you can create it for the group and then add the user to the group.
summary: Retrieves all distribution groups this user has permissions to view in this account
parameters:
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Groups
responses:
200:
description: Group information
schema:
type: array
items:
$ref: '#/definitions/Groups'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
post:
summary: Create a new group
description: Creates a new group. The Post query must include the specification of the group.
parameters:
- name: Contacts
in: query
required: true
description: List of user ids or email addresses to add to group
type: array
items:
type: string
- name: Name
in: query
required: true
description: Name of group
type: string
- name: IsShared
in: query
required: false
type: boolean
description: Is the group shared
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Groups
responses:
200:
description: Group information
schema:
$ref: '#/definitions/Groups'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/groups/{GroupIdentifier}:
get:
summary: Get a specific group
description: Retrieves a single Group by id
parameters:
- name: GroupIdentifier
in: path
required: true
type: string
description: Unique indentifier of the group
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Groups
responses:
200:
description: Group information
schema:
$ref: '#/definitions/Groups'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
patch:
summary: Update a specific group
description: Updates an existing group. This operation will ignore the provided clients list. Use the \Contacts navigation link to add/remove elements from a group
parameters:
- name: GroupIdentifier
in: path
required: true
description: Unique identifier of group
type: string
- name: Name
in: query
required: true
description: Name of group
type: string
- name: IsShared
in: query
required: false
type: boolean
description: Is the group shared
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Groups
responses:
200:
description: Group information
schema:
$ref: '#/definitions/Groups'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
delete:
summary: Delete group
description: Remove a group from ShareFile
parameters:
- name: GroupIdentifier
in: path
description: Unique identifier for the group
required: true
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Groups
responses:
200:
description: OK
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/groups/{GroupIdentifier}/contacts/:
get:
summary: Get a list of contacts for a specific group
description: Retrieves the contacts of a group
parameters:
- name: GroupIdentifier
in: path
required: true
type: string
description: Unique indentifier of the group
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Groups
responses:
200:
description: Contact information
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
post:
summary: Add a list of contacts to group
description: Adds a list of contacts to a group. The contact list may contain either contact ID (same as User ID) or Email.
parameters:
- name: GroupIdentifier
in: path
required: true
type: string
description: Unique indentifier of the group
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Groups
responses:
200:
description: Group information
schema:
$ref: '#/definitions/Groups'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
delete:
summary: Remove contacts from group
description: Remove contacts from group
parameters:
- name: GroupIdentifier
in: path
required: true
type: string
description: Unique indentifier of the group
- name: Contacts
in: query
description: User id or email address [{"Email":"user.one@domain.com"},{"Id":"abcd"}]
required: true
type: array
items:
type: string
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- Groups
responses:
200:
description: Group information
schema:
$ref: '#/definitions/Groups'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/items/{ItemIdentifier}/accesscontrols/:
get:
description: AccessControls define the rights and options of a Principal to a given Item AccessControls define a set of rights - such as CanUpload, CanDownload, CanView - as well as a set of options - such as NotifyOnUpload - that applies to a given Principal (user) and Item (folder). In ShareFile, Access Controls are only associated with Folders. Access Controls can be inherited on Children Folders, or Children can override the list of the Parent. The ACLs are not additive - either the Child uses the list of the Parent, or it defines a new list.
summary: Retrieves the access control list for a given item.
parameters:
- name: ItemIdentifier
in: path
type: string
required: true
description: Unique identifier for the file or folder
- $ref: '#/parameters/Authorization'
- $ref: '#/parameters/Cookie'
- $ref: '#/parameters/code'
- $ref: '#/parameters/subdomain'
- $ref: '#/parameters/username'
- $ref: '#/parameters/password'
tags:
- AccessControls
responses:
200:
description: AccessControl information
schema:
$ref: '#/definitions/AccessControls'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
post:
summary: Create access control for item
description: Creates a new Access Controls entry for a given Item. Access controls can only define a single Principal, which can be either a Group or User. The 'Principal' element is specified as an object - you should populate either the URL or the ID reference.
parameters:
- name: ItemIdentifier