-
Notifications
You must be signed in to change notification settings - Fork 1
/
member_api_v3.yml
2148 lines (2129 loc) · 78.7 KB
/
member_api_v3.yml
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: APTrust Registry Member API
description: Open API documentation for version 3 of the APTrust Member API.
version: '3.0.1'
contact:
email: "[email protected]"
license:
name: BSD 2-Clause "Simplified" License
url: https://raw.githubusercontent.com/APTrust/registry/master/LICENSE
servers:
- url: https://demo.aptrust.org
description: "APTrust demo server. Use this for testing."
- url: https://repo.aptrust.org
description: "APTrust production server."
tags:
- name: Alerts
description: Alerts generated by the Registry
- name: Checksums
description: Checksums calculated at ingest and during file fixity checks
- name: Deletion Requests
description: File and object deletion requests
- name: Generic Files
description: Info about individual files
- name: Intellectual Objects
description: Info about objects
- name: Premis Events
description: Info about events pertaining to files and objects
- name: Work Items
description: Info about Work Items, including ingest, deletion, and restoration
components:
securitySchemes:
apiKey:
type: apiKey
in: header
name: X-Pharos-API-Key
description: User's secret API key
apiUser:
type: apiKey
in: header
name: X-Pharos-API-User
description: User's email address
schemas:
AlertView:
type: object
properties:
id:
type: integer
format: int64
institution_id:
type: integer
format: int64
institution_name:
type: string
institution_identifier:
type: string
type:
type: string
description: The type of alert.
enum: ["Deletion Cancelled", "Deletion Completed", "Deletion Confirmed", "Deletion Requested", "Failed Fixity Check", "Password Changed", "Password Reset", "Restoration Completed", "Stalled Work Items", "Welcome New User"]
subject:
type: string
content:
type: string
description: The main body of the alert message.
deletion_request_id:
type: integer
format: int64
nullable: true
description: The id of the deletion request, if this alert pertains to a deletion request.
created_at:
type: string
format: date-time
description: Date and time the alert was generated.
user_id:
type: integer
format: int64
description: The ID of the user to whom the alert was sent.
user_name:
type: string
description: The name of the user to whom the alert was sent.
sent_at:
type: string
format: date-time
nullable: true
description: Date and time this alert was sent to the user. This may be null if the system was unable to send the alert.
read_at:
type: string
format: date-time
nullable: true
description: Date and time the recipient read this alert. This will be null if the recipient has not yet viewed the alert, or if the recipient manually set the message to 'unread' in the Web UI.
AlertViewList:
properties:
count:
type: integer
format: int64
description: The total number of results matching your query.
next:
type: string
description: The URL for the next page of results.
previous:
type: string
description: The URL for the previous page of results.
items:
description: A list of alerts matching your query.
type: array
items:
$ref: '#/components/schemas/AlertView'
Checksum:
type: object
properties:
id:
type: integer
format: int64
algorithm:
type: string
enum: ["md5", "sha1", "sha256", "sha512"]
description: The algorithm used to calculate the digest.
datetime:
type: string
format: date-time
description: The date and time at which this digest was calculated.
digest:
type: string
description: The checksum.
generic_file_id:
type: integer
format: int64
description: The unique id of the GenericFile to which this checksum pertains.
ChecksumView:
type: object
properties:
id:
type: integer
format: int64
algorithm:
type: string
enum: ["md5", "sha1", "sha256", "sha512"]
description: The algorithm used to calculate the digest.
datetime:
type: string
format: date-time
description: The date and time at which this digest was calculated.
digest:
type: string
description: The checksum.
state:
type: string
enum: ["A", "D"]
description: The state of the GenericFile to which this checksum pertains. A = Active, D = Deleted
generic_file_identifier:
type: string
description: "The identifier of the GenericFile to which this checksum pertains. GenericFile identifiers follow a semantic format: <instution_identifier>/<bag_name>/<path_in_bag>"
example: test.edu/SampleBag/data/document.pdf
generic_file_id:
type: integer
format: int64
description: The unique id of the GenericFile to which this checksum pertains.
intellectual_object_id:
type: integer
format: int64
description: The ID of the GenericFile's parent object.
institution_id:
type: integer
format: int64
description: The ID of the institution that owns the GenericFile.
created_at:
type: string
format: date-time
description: The date and time at which the checksum record was created in the database. This will be later than the datetime field because checksums are calculated early in the ingest process and recorded near the end of ingest.
updated_at:
type: string
format: date-time
description: Since checksums cannot be updated, this should always match the value of created_at.
ChecksumViewList:
properties:
count:
type: integer
format: int64
description: The total number of results matching your query.
next:
type: string
description: The URL for the next page of results.
previous:
type: string
description: The URL for the previous page of results.
items:
type: array
description: An array of ChecksumView objects matching your query.
items:
$ref: '#/components/schemas/ChecksumView'
DeletionRequestView:
type: object
properties:
id:
type: integer
format: int64
institution_id:
type: integer
format: int64
description: The ID of the institution that owns the files or objects to which this deletion request pertains.
institution_name:
type: string
description: The name of the institution that owns the files or objects to which this deletion request pertains.
institution_identifier:
type: string
description: The identifier (domain name) of the institution that owns the files or objects to which this deletion request pertains.
requested_by_id:
type: integer
format: int64
description: The id of the user who requested the deletion.
requested_by_name:
type: string
description: The name of the user who requested this deletion.
requested_by_email:
type: string
description: The email address of the user who requested this deletion.
format: email
requested_at:
type: string
format: date-time
description: The date and time at which this deletion was requested.
confirmed_by_id:
type: integer
format: int64
description: The id of the user who confirmed (approved) this deletion. This will be null if the deletion has not yet been approved or was cancelled.
nullable: true
confirmed_by_name:
type: string
description: The name of the user who confirmed (approved) this deletion.
nullable: true
confirmed_by_email:
type: string
description: The email address of the user who confirmed (approved) this deletion.
format: email
nullable: true
confirmed_at:
type: string
format: date-time
description: The date and time at which this deletion was approved.
nullable: true
cancelled_by_id:
type: integer
format: int64
description: The id of the user who cancelled (rejected) this deletion.
nullable: true
cancelled_by_name:
type: string
description: The name of the user who cancelled (rejected) this deletion.
nullable: true
cancelled_by_email:
type: string
description: The email address of the user who cancelled (rejected) this deletion.
format: email
nullable: true
cancelled_at:
type: string
format: date-time
description: The date and time at which this deletion was cancelled (rejected).
nullable: true
file_count:
type: integer
format: int64
description: The total number of files to be deleted in this request. If zero, this is an object deletion request.
minimum: 0
object_count:
type: integer
format: int64
description: The total number of objects to be deleted in this request. If zero, this is a file deletion request.
minimum: 0
status:
type: string
description: The status of the deletion request.
enum: ["Approved", "Awaiting Approval", "Rejected"]
nullable: true
DeletionRequestViewList:
properties:
count:
type: integer
format: int64
description: The total number of results matching your query.
next:
type: string
description: The URL for the next page of results.
previous:
type: string
description: The URL for the previous page of results.
items:
description: A list of deletion requests matching your query.
type: array
items:
$ref: '#/components/schemas/DeletionRequestView'
GenericFile:
type: object
properties:
id:
type: integer
format: int64
file_format:
type: string
description: The mime type of the file.
size:
type: integer
format: int64
description: The size (in bytes) of the file.
identifier:
type: string
description: The file's semantic identifier in the format <instution_identifier>/<bag_name>/<path_in_bag>.
intellectual_object_id:
type: integer
format: int64
description: The ID of the IntellectualObject to which this file belongs.
state:
type: string
description: Indicates whether the file is Active (A) or Deleted (D).
enum: ["A", "D"]
last_fixity_check:
type: string
format: date-time
description: The date and time of this file's last fixity check.
institution_id:
type: integer
format: int64
description: The ID of the institution that owns this file.
storage_option:
type: string
description: Indicates where the file is stored.
enum: ["Glacier-Deep-OH", "Glacier-Deep-OR", "Glacier-Deep-VA", "Glacier-OH", "Glacier-OR", "Glacier-VA", "Standard", "Wasabi-OR", "Wasabi-VA"]
uuid:
type: string
format: uuid
description: The file's unique identifier in preserveration storage. This is its S3/Glacier key name.
premis_events:
description: Premis events pertaining to this file.
type: array
items:
$ref: '#/components/schemas/PremisEvent'
checksums:
description: A list of checksums for this file.
type: array
items:
$ref: '#/components/schemas/Checksum'
storage_records:
description: A list of storage records for this file. Each record points to a copy of this file in a preservation storage bucket.
type: array
items:
$ref: '#/components/schemas/StorageRecord'
created_at:
type: string
format: date-time
description: The date and time at which the generic file record was created. This indicates the date of initial ingest.
updated_at:
type: string
format: date-time
description: The date and time at which the generic file was last updated. Updates may indicate re-ingest or changes to last fixity check date.
GenericFileView:
type: object
properties:
id:
type: integer
format: int64
file_format:
type: string
description: The mime type of the file.
size:
type: integer
format: int64
description: The size (in bytes) of the file.
identifier:
type: string
description: The file's semantic identifier in the format <instution_identifier>/<bag_name>/<path_in_bag>.
intellectual_object_id:
type: integer
format: int64
description: The ID of the IntellectualObject to which this file belongs.
object_identifier:
type: string
description: The semantic identifier of the file's parent object, in the format <instution_identifier>/<bag_name>
access:
type: string
description: Describes whether this files's metadata can be accessed by the APTrust consortia, by the institution, or only by admins at the institution (restricted). This is vestigial field. Access settings have never been fully implemented, and all objects are treated as access-level "institution".
enum: ["consortia", "institution", "restricted"]
state:
type: string
description: Indicates whether the file is Active (A) or Deleted (D).
enum: ["A", "D"]
last_fixity_check:
type: string
format: date-time
description: The date and time of this file's last fixity check.
institution_id:
type: integer
format: int64
description: The ID of the institution that owns this file.
institution_name:
type: string
description: The name of the institution that deposited this file.
institution_identifier:
type: string
description: The institution's unique identifier, usually a domain name.
storage_option:
type: string
description: Indicates where the file is stored.
enum: ["Glacier-Deep-OH", "Glacier-Deep-OR", "Glacier-Deep-VA", "Glacier-OH", "Glacier-OR", "Glacier-VA", "Standard", "Wasabi-OR", "Wasabi-VA"]
uuid:
type: string
format: uuid
description: The file's unique identifier in preserveration storage. This is its S3/Glacier key name.
md5:
type: string
description: The most recent md5 digest for this file.
sha1:
type: string
description: The most recent sha1 digest for this file.
sha256:
type: string
description: The most recent sha256 digest for this file.
sha512:
type: string
description: The most recent sha512 digest for this file.
created_at:
type: string
format: date-time
description: The date and time at which the generic file record was created. This indicates the date of initial ingest.
updated_at:
type: string
format: date-time
description: The date and time at which the generic file was last updated. Updates may indicate re-ingest or changes to last fixity check date.
GenericFileViewList:
properties:
count:
type: integer
format: int64
description: The total number of results matching your query.
next:
type: string
description: The URL for the next page of results.
previous:
type: string
description: The URL for the previous page of results.
items:
description: A list of files matching your query.
type: array
items:
$ref: '#/components/schemas/GenericFileView'
IntellectualObjectView:
type: object
properties:
id:
type: integer
format: int64
title:
type: string
description: The title should briefly describe the contents of the object.
description:
type: string
description: A more detailed description of the object's contents.
identifier:
type: string
description: A unique identifier for this object in the format <instution_identifier>/<bag_name>.
alt_identifier:
type: string
description: An alternate identifier for this object, supplied by the depositor.
nullable: true
access:
type: string
description: Describes whether this object's metadata can be accessed by the APTrust consortia, by the institution, or only by admins at the institution (restricted). This is vestigial field. Access settings have never been fully implemented, and all objects are treated as access-level "institution".
enum: ["consortia", "institution", "restricted"]
bag_name:
type: string
description: The name of the bag when it was uploaded to the depositor's receiving bucket, minus the .tar extention. For example, bag "Photos_1945.tar" will have bag name "Photos_1945".
institution_id:
type: integer
format: int64
description: The ID of the institution that owns this object.
created_at:
type: string
format: date-time
description: The date and time this record was created.
updated_at:
type: string
format: date-time
description: The date and time this record was last updated.
state:
type: string
description: Indicates whether the object is Active (A) or Deleted (D).
enum: ["A", "D"]
etag:
type: string
description: The etag of last ingested version of this object. The etag is assinged by S3 upon upload to the depositor's receiving bucket.
nullable: false
bag_group_identifier:
type: string
description: An optional identifier naming the logical group to which this object belongs. For instance, if ten bags are all part of the same collection, the collection name may be used as the group identifier associating all ten bags.
nullable: true
storage_option:
type: string
description: Indicates where the object's files are stored.
enum: ["Glacier-Deep-OH", "Glacier-Deep-OR", "Glacier-Deep-VA", "Glacier-OH", "Glacier-OR", "Glacier-VA", "Standard", "Wasabi-OR", "Wasabi-VA"]
bagit_profile_identifier:
type: string
description: The identifier of the BagIt profile used to create this bag. This can be either the APTrust profile URL or the BTR profile URL. Bags will be restored using the same profile under which they were submitted.
enum: ["https://github.com/dpscollaborative/btr_bagit_profile/releases/download/1.0/btr-bagit-profile.json", "https://raw.githubusercontent.com/APTrust/preservation-services/master/profiles/aptrust-v2.2.json"]
source_organization:
type: string
description: The name of the institution that submitted the object for ingest.
internal_sender_identifier:
type: string
description: An optional identifier for internal use by the depositor.
nullable: true
internal_sender_description:
type: string
description: An optional description for use by the depositor.
nullable: true
institution_name:
type: string
description: Name of the institution that deposited this object.
institution_identifier:
type: string
description: Identifier of the institution that deposited this object.
institution_type:
type: string
description: Indicates whether the institution that owns this object is a member institution (account) or subscribing institution (sub-account).
enum: ["MemberInstitution", "SubscriptionInstitution"]
institution_parent_id:
type: integer
format: int64
description: ID of this institution's parent. Applicable to subscriber institutions (sub-accounts) only.
nullable: true
file_count:
type: integer
format: int64
description: The total number of files preserved for this object. This includes payload files and preserved manifests. APTrust does not preserve manifests or tag manifests. This number can change over time as additional new files are ingested or existing ones are deleted.
nullable: false
size:
type: integer
format: int64
description: The total number of bytes for all files preserved for this object. This number can change over time as additional new files are ingested or existing ones are deleted.
payload_file_count:
type: integer
format: int64
description: The total number of files in this object's payload. I.e., inside the data directory of the bag that was uploaded for deposit. This number can change over time as additional new files are ingested or existing ones are deleted.
nullable: false
payload_size:
type: integer
format: int64
description: Total size, in bytes, of the files in this object's payload directory (the data directory of the bag that was uploaded for ingest). This number can change over time as additional new files are ingested or existing ones are deleted.
nullable: false
IntellectualObjectViewList:
properties:
count:
type: integer
format: int64
description: The total number of results matching your query.
next:
type: string
description: The URL for the next page of results.
previous:
type: string
description: The URL for the previous page of results.
items:
description: A list of objects matching your query.
type: array
items:
$ref: '#/components/schemas/IntellectualObjectView'
PremisEvent:
type: object
properties:
id:
type: integer
format: int64
agent:
type: string
description: The name of the software or service that performed the action this event is recording.
date_time:
type: string
format: date-time
description: The date and time at which the action was performed.
detail:
type: string
description: A description of the event.
event_type:
type: string
description: The type of event.
enum:
- access assignment
- creation
- deletion
- fixity check
- identifier assignment
- ingestion
- message digest calculation
- replication
generic_file_id:
type: integer
format: int64
description: The ID of the file with which this event is associated. This will be null for object-level events.
nullable: true
identifier:
type: string
format: uuid
description: A unique identifier for this event.
institution_id:
type: integer
format: int64
description: The ID of the institution that owns the file or object to which this event pertains.
intellectual_object_id:
type: integer
format: int64
description: The ID of the IntellectualObject with which this event is associated.
object:
type: string
description: More information about the agent that performed this action.
old_uuid:
type: string
format: uuid
description: Legacy UUID of events created before 2017. This will be empty for most events.
nullable: true
outcome:
type: string
description: Indicates the outcome of the action.
enum: ["Failure", "Success"]
outcome_detail:
type: string
description: Details of the action's outcome, such as what identifier was assigned, what digest was calculated, etc.
outcome_information:
type: string
description: A summary of the action's outcome.
created_at:
type: string
format: date-time
description: The date and time this record was created.
updated_at:
type: string
format: date-time
description: Because Premis Events cannot be changed, this timestamp should always match created_at.
PremisEventView:
type: object
properties:
id:
type: integer
format: int64
agent:
type: string
description: The name of the software or service that performed the action this event is recording.
created_at:
type: string
format: date-time
description: The date and time this record was created.
date_time:
type: string
format: date-time
description: The date and time at which the action was performed.
detail:
type: string
description: A description of the event.
event_type:
type: string
description: The type of event.
enum:
- access assignment
- creation
- deletion
- fixity check
- identifier assignment
- ingestion
- message digest calculation
- replication
generic_file_id:
type: integer
format: int64
description: The ID of the file with which this event is associated. This will be null for object-level events.
nullable: true
generic_file_identifier:
type: string
description: The file's semantic identifier in the format <instution_identifier>/<bag_name>/<path_in_bag>.
nullable: true
identifier:
type: string
format: uuid
description: A unique identifier for this event.
institution_id:
type: integer
format: int64
description: The ID of the institution that owns the file or object to which this event pertains.
institution_name:
type: string
description: The name of the institution that owns the file or object to which the event pertains.
intellectual_object_id:
type: integer
format: int64
description: The ID of the IntellectualObject with which this event is associated.
intellectual_object_identifier:
type: string
description: A unique identifier for the object to which this event pertains in the format <instution_identifier>/<bag_name>.
object:
type: string
description: More information about the agent that performed this action.
old_uuid:
type: string
format: uuid
description: Legacy UUID of events created before 2017. This will be empty for most events.
nullable: true
outcome:
type: string
description: Indicates the outcome of the action.
enum: ["Failure", "Success"]
outcome_detail:
type: string
description: Details of the action's outcome, such as what identifier was assigned, what digest was calculated, etc.
outcome_information:
type: string
description: A summary of the action's outcome.
updated_at:
type: string
format: date-time
description: Because Premis Events cannot be changed, this timestamp should always match created_at.
PremisEventViewList:
properties:
count:
type: integer
format: int64
description: The total number of results matching your query.
next:
type: string
description: The URL for the next page of results.
previous:
type: string
description: The URL for the previous page of results.
items:
description: A list of events matching your query.
type: array
items:
$ref: '#/components/schemas/PremisEventView'
StorageRecord:
type: object
properties:
id:
type: integer
format: int64
generic_file_id:
type: integer
format: int64
description: The ID of the GenericFile stored in preservation.
url:
type: string
description: The URL of the GenericFile in preservation storage.
WorkItemView:
type: object
properties:
id:
type: integer
format: int64
action:
type: string
description: The action being performed.
enum: ["Delete", "Restore Object", "Restore File", "Glacier Restore", "Ingest"]
alt_identifier:
type: string
description: An alternate identifier for this object, supplied by the depositor.
nullable: true
aptrust_approver:
type: string
format: email
description: The email address of the APTrust admin who approved this item. In the past, this was used to only to approve bulk deletions.
nullable: true
bagit_profile_identifier:
type: string
description: The identifier of the BagIt profile used to create this bag. This can be either the APTrust profile URL or the BTR profile URL. Bags will be restored using the same profile under which they were submitted.
enum: ["https://github.com/dpscollaborative/btr_bagit_profile/releases/download/1.0/btr-bagit-profile.json", "https://raw.githubusercontent.com/APTrust/preservation-services/master/profiles/aptrust-v2.2.json"]
bag_date:
type: string
format: date-time
description: The date on which the originally submitted bag appeared in the receiving bucket.
bag_group_identifier:
type: string
description: An optional identifier naming the logical group to which this object belongs. For instance, if ten bags are all part of the same collection, the collection name may be used as the group identifier associating all ten bags.
nullable: true
bucket:
type: string
description: The name of the receiving bucket into which the original bag was uploaded for ingest.
nullable: false
created_at:
type: string
format: date-time
description: The date and time this record was created.
date_processed:
type: string
format: date-time
description: The date and time of last known activity on this work item. This timestamp may change several times during multipart processes such as ingest.
deletion_request_id:
type: integer
format: int64
description: The ID of the file or object deletion request related to this item. This will be null for all actions other than Delete.
nullable: false
etag:
type: string
description: The etag of tar file uploaded for ingest.
nullable: false
generic_file_id:
type: integer
format: int64
description: The ID of the GenericFile this work item pertains to. This will be null if the WorkItem pertains to an object.
nullable: true
generic_file_identifier:
type: string
description: The file's semantic identifier in the format <instution_identifier>/<bag_name>/<path_in_bag>.
nullable: true
institution_id:
type: integer
format: int64
description: The ID of the institution that owns the file or object that is the subject of this work item.
institution_name:
type: string
description: The name of the institution that owns the files or objects to which this work item pertains.
institution_identifier:
type: string
description: The identifier (domain name) of the institution that owns the files or objects to which this work item pertains.
inst_approver:
type: string
format: email
description: The email address of the institutional admin who approved a deletion request.
nullable: true
intellectual_object_id:
type: integer
format: int64
description: The ID of the IntellectualObject being worked on. This will be null for ingest work items where the ingest is not yet complete.
nullable: true
internal_sender_identifier:
type: string
description: An optional identifier for internal use by the depositor.
nullable: true
name:
type: string
description: The name of the original tar file uploaded to the receiving bucket for ingest.
nullable: false
needs_admin_review:
type: boolean
description: Indicates whether an APTrust admin needs to review and possibly requeue this item. This flag is set after an item encounters too many transient errors.
node:
type: string
description: The hostname of the microservice worker currently processing this item.
nullable: true
note:
type: string
description: A brief summary of the status of this item.
nullable: false
object_identifier:
type: string
description: A unique identifier for this object in the format <instution_identifier>/<bag_name>.
nullable: true
outcome:
type: string
description: The outcome of this item's activity.
enum: ["Failure", "Success"]
pid:
type: integer
format: int64
description: The process ID of the worker that is currently working on this item.
queued_at:
type: string
format: date-time
description: The date and time this item was queued for processing.
nullable: true
retry:
type: boolean
description: Indicates whether APTrust worker process should continue trying to process this work item. This is set to false only after certain fatal errors, or after too many transient errors.
size:
type: integer
format: int64
description: The size (in bytes) of the bag, object, or file being worked on.
nullable: false
source_organization:
type: string
description: The name of the institution that submitted the object for ingest.
stage:
type: string
description: The stage of processing.
enum:
- Available in S3
- Cleanup
- Copy To Staging
- Fetch
- Format Identification
- Package
- Receive
- Record
- Reingest Check
- Requested
- Resolve
- Restoring
- Storage Validation
- Store
- Unpack
- Validate
stage_started_at:
type: string
format: date-time
description: Indicates when the current stage of processing started for this item.
nullable: true
status:
type: string
description: The status of the current operation.
enum:
- Cancelled
- Failed
- Pending
- Started
- Success
- Suspended
storage_option:
type: string
description: Indicates where the object's files are stored.
enum: ["Glacier-Deep-OH", "Glacier-Deep-OR", "Glacier-Deep-VA", "Glacier-OH", "Glacier-OR", "Glacier-VA", "Standard", "Wasabi-OR", "Wasabi-VA"]
updated_at:
type: string
format: date-time
description: The date and time this record was last updated.
user:
type: string
format: email
description: The email address of the user who initiated this work item.
nullable: false
WorkItemViewList:
properties:
count:
type: integer
format: int64
description: The total number of results matching your query.
next:
type: string
description: The URL for the next page of results.
previous:
type: string
description: The URL for the previous page of results.
items:
description: A list of items matching your query.
type: array
items:
$ref: '#/components/schemas/WorkItemView'
paths:
/member-api/v3/alerts:
get:
summary: Returns a list of alerts for the currently authenticated user.
tags:
- Alerts
parameters:
- name: page
in: query
description: The page of results to fetch
required: false
schema:
type: integer
default: 1
format: int32
- name: per_page
in: query
description: The number of results to fetch per page.
required: false
schema:
type: integer
default: 20
format: int32
- name: sort
in: query
description: Sort the results in the specified column and direction. The format for this param is column__direction, where column is the column name and direction is either "asc" or "desc".
required: false
schema:
type: string
enum: ["created_at__asc", "created_at__desc", "type__asc", "type__desc"]
- name: created_at__gteq
in: query
description: Return alerts created on or after the given timestamp.
required: false
schema:
type: string
format: date-time
- name: created_at__lteq
in: query
description: Return alerts created on or before the given timestamp.
required: false
schema:
type: string
format: date-time
- name: type
in: query
description: Return alerts of the specified type.