-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkeeper-data-api-openapi-public.yaml
More file actions
1867 lines (1800 loc) · 64 KB
/
Copy pathkeeper-data-api-openapi-public.yaml
File metadata and controls
1867 lines (1800 loc) · 64 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
openapi: 3.0.3
info:
title: Livestock Keeper Data API (Public)
description: |-
The Livestock Keeper Data API is a reference data service that allows developers to build applications that connect with Defra's Livestock - Location and Party Data domain.
With the Livestock Keeper Data API, you can:
* **Authenticate** with Defra's identity system using Bearer (JWT) or Basic authentication.
* **Retrieve** location-based reference data such as Sites and its related data such as Parties, Species, Marks etc.
* **Retrieve** reference data for Parties and related information.
All list endpoints support **Change Data Capture (CDC)** via the `lastUpdatedDate` query parameter, returning only records updated since the provided timestamp.
All list endpoints return paginated results with `count`, `totalCount`, `values`, `page`, `pageSize`, `totalPages`, `hasNextPage`, and `hasPreviousPage` fields.
termsOfService: https://www.defra.gov.uk/legal
version: "1.0.0"
contact:
name: Defra Livestock Data Services Support
url: https://www.defra.gov.uk/support
email: support_cdp_platform@defra.gov.uk
license:
name: Livestock Data Services Agreement
url: https://www.defra.gov.uk/services-agreement/
servers:
- url: /
description: Current environment
externalDocs:
description: Defra website
url: https://www.defra.gov.uk/
tags:
- name: site
description: Operations related to sites (premises/holdings)
- name: site reference
description: Reference data related to sites (countries)
- name: party
description: Operations related to parties (keepers, organisations)
- name: housekeeping
description: Health checks and system status
security:
- bearerAuth: []
- basicAuth: []
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: JWT authorisation token
basicAuth:
type: http
scheme: basic
description: Basic authentication credentials
schemas:
# ─── Country ──────────────────────────────────────────────────────
Country:
type: object
description: An ISO country reference record.
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the reference object."
code:
type: string
example: GB-ENG
description: "This the business code/key of the Country object. This is a mutable field, where this field data could possibly change."
name:
type: string
example: England
description: "This the business name of the Country object. This is a mutable field, where this field data could possibly change."
longName:
type: string
example: England - United Kingdom
euTradeMemberFlag:
type: boolean
example: true
devolvedAuthorityFlag:
type: boolean
example: true
lastUpdatedDate:
type: string
format: date-time
nullable: true
description: "The timestamp of the last time the Country record was updated"
required:
- code
- name
# ─── Country Summary (embedded in Address) ────────────────────────
CountrySummary:
type: object
description: A lightweight country summary embedded within address records.
properties:
id:
type: string
format: uuid
readOnly: true
code:
type: string
example: GB-ENG
name:
type: string
example: England
longName:
type: string
nullable: true
example: England - United Kingdom
euTradeMemberFlag:
type: boolean
devolvedAuthorityFlag:
type: boolean
lastModifiedDate:
type: string
format: date-time
nullable: true
# ─── Communication ────────────────────────────────────────────────
Communication:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the master data object."
email:
type: string
example: john.doe@somecompany.co.uk
mobile:
type: string
example: "07123456789"
landline:
type: string
example: "0114 1231234"
primaryContactFlag:
type: boolean
nullable: true
example: true
lastUpdatedDate:
type: string
format: date-time
description: "The timestamp of the last time the Communication record was updated"
# ─── Address ──────────────────────────────────────────────────────
Address:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the master data object."
uprn:
type: integer
nullable: true
example: 671544009
addressLine1:
type: string
nullable: false
description: "This single address line is associated with the OS Address Base Fields such as SAO_TEXT, SAO_START_NUMBER, PAO_TEXT, PAO_START_NUMBER and STREET_DESCRIPTION."
example: "Hansel & Gretel Farm, Pigs Street"
addressLine2:
type: string
nullable: true
example: "Cloverfield"
description: "This optional field is associated with the OS Address Base Field of LOCALITY, if applicable."
postTown:
type: string
nullable: true
example: "Clover town"
description: "This field describes the Town or City of the Address. It is aligned to the OS Address Base Field of POST_TOWN."
county:
type: string
nullable: true
example: "Sussex"
description: "This optional field is associated with the OS Address Base Field of ADMINISTRATIVE_AREA."
postcode:
type: string
nullable: false
example: "S36 2BS"
country:
$ref: '#/components/schemas/CountrySummary'
lastUpdatedDate:
type: string
format: date-time
description: "The timestamp of the last time the Address record was updated"
required:
- addressLine1
- postcode
# ─── Location ─────────────────────────────────────────────────────
Location:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the master data object."
osMapReference:
type: string
example: "SK25979936"
easting:
type: number
format: double
nullable: true
example: 425978.12
northing:
type: number
format: double
nullable: true
example: 399361.50
address:
$ref: '#/components/schemas/Address'
communication:
type: array
items:
$ref: '#/components/schemas/Communication'
lastUpdatedDate:
type: string
format: date-time
description: "The timestamp of the last time the Location record was updated"
# ─── Species Summary (embedded in sites/marks) ────────────────────
SpeciesSummary:
type: object
description: A lightweight species reference embedded within site and mark records.
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the reference object."
code:
type: string
example: CTT
name:
type: string
example: Cattle
lastModifiedDate:
type: string
format: date-time
nullable: true
description: "The timestamp of the last time the Species record was updated"
required:
- code
- name
# ─── Managed Species (embedded in party roles) ────────────────────
ManagedSpecies:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
code:
type: string
example: CTT
name:
type: string
example: Cattle
startDate:
type: string
format: date-time
description: "The date the said species came under the care of the said Role."
endDate:
type: string
format: date-time
nullable: true
description: "The date the said species left the care of the said Role."
lastUpdatedDate:
type: string
format: date-time
description: "The timestamp of the last time the ManagedSpecies record was updated"
required:
- code
- name
# ─── Group Mark ───────────────────────────────────────────────────
GroupMark:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
mark:
type: string
example: "564545"
startDate:
type: string
format: date-time
description: "The date the herd/flock/group mark was assigned."
endDate:
type: string
format: date-time
nullable: true
description: "The date the herd/flock/group mark was removed."
species:
type: array
items:
$ref: '#/components/schemas/SpeciesSummary'
lastUpdatedDate:
type: string
format: date-time
required:
- mark
# ─── Site Identifier Type ─────────────────────────────────────────
SiteIdentifierType:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the reference object."
code:
type: string
description: "The business key/code values for a Site Identifier Type"
example: "CPHN"
name:
type: string
description: "The type which identifies the site identifier."
example: "CPH Number"
lastUpdatedDate:
type: string
format: date-time
nullable: true
description: "The timestamp of the last time the SiteIdentifier Type record was updated"
# ─── Site Identifier ──────────────────────────────────────────────
SiteIdentifier:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
identifier:
type: string
nullable: false
example: "57/103/2335"
type:
$ref: '#/components/schemas/SiteIdentifierType'
lastUpdatedDate:
type: string
format: date-time
description: "The timestamp of the last time the SiteIdentifier record was updated"
required:
- identifier
- type
# ─── Site Type (Premises Type Summary) ────────────────────────────
SiteType:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the reference object."
code:
type: string
description: "The business key/code values for a siteType"
example: "AH"
name:
type: string
description: "The type of site an animal may reside at."
example: "Agricultural Holding"
lastUpdatedDate:
type: string
format: date-time
nullable: true
description: "The timestamp of the last time the SiteType record was updated"
# ─── Site Activity Type ───────────────────────────────────────────
SiteActivityType:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the reference object."
code:
type: string
nullable: false
example: WP
name:
type: string
example: Wildlife Park
lastUpdatedDate:
type: string
format: date-time
nullable: true
description: "The timestamp of the last time the SiteActivityType record was updated"
# ─── Site Activity ────────────────────────────────────────────────
SiteActivity:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
type:
$ref: '#/components/schemas/SiteActivityType'
startDate:
type: string
format: date-time
nullable: true
endDate:
type: string
format: date-time
nullable: true
lastUpdatedDate:
type: string
format: date-time
description: "The timestamp of the last time the SiteActivity record was updated"
# ─── Role (embedded in party roles) ───────────────────────────────
Role:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the reference object."
code:
type: string
description: "This is the unique code assigned to the Role entity"
example: "LIVESTOCKKEEPER"
name:
type: string
example: "Livestock Keeper"
nullable: true
lastUpdatedDate:
type: string
format: date-time
nullable: true
description: "The timestamp of the last time the Role record was updated"
# ─── Party Role (with site - used in PartyDocument) ───────────────
PartyRoleWithSite:
type: object
description: "A role assigned to a party, with optional site association and species managed under that role."
properties:
id:
type: string
format: uuid
readOnly: true
site:
$ref: '#/components/schemas/PartyRoleSite'
role:
$ref: '#/components/schemas/Role'
speciesManagedByRole:
type: array
description: "The list of species managed by the said Role assigned to the said Party."
items:
$ref: '#/components/schemas/ManagedSpecies'
lastUpdatedDate:
type: string
format: date-time
nullable: true
description: "The timestamp of the last time the Roles To Party record was updated"
# ─── Party Role Site (lightweight site in party role) ─────────────
PartyRoleSite:
type: object
description: "A lightweight site summary embedded within a party's role."
properties:
id:
type: string
format: uuid
readOnly: true
name:
type: string
nullable: true
type:
$ref: '#/components/schemas/SiteType'
state:
type: string
nullable: true
enum:
- active
- inactive
identifiers:
type: array
items:
$ref: '#/components/schemas/SiteIdentifier'
lastUpdatedDate:
type: string
format: date-time
nullable: true
# ─── Party Role (without site - used in SitePartyDocument) ────────
PartyRole:
type: object
description: "A role assigned to a party, with species managed under that role."
properties:
id:
type: string
format: uuid
readOnly: true
role:
$ref: '#/components/schemas/Role'
speciesManagedByRole:
type: array
description: "The list of species managed by the said Role assigned to the said Party."
items:
$ref: '#/components/schemas/ManagedSpecies'
lastUpdatedDate:
type: string
format: date-time
nullable: true
# ─── Site Party (embedded within a Site) ──────────────────────────
SiteParty:
type: object
description: "A party associated with a site, containing their contact details, address and roles."
properties:
id:
type: string
format: uuid
readOnly: true
customerNumber:
type: string
example: "C77473"
description: "This is the L or the C number provided from the SAM system."
title:
type: string
nullable: true
example: "Mr"
firstName:
type: string
nullable: true
example: "John"
lastName:
type: string
nullable: true
example: "Doe"
name:
type: string
nullable: true
example: "John Doe"
partyType:
type: string
nullable: true
example: Person
enum:
- Person
- Organisation
state:
type: string
nullable: true
enum:
- active
- inactive
lastUpdatedDate:
type: string
format: date-time
description: "The timestamp of the last time the Site Party record was updated"
communication:
type: array
items:
$ref: '#/components/schemas/Communication'
correspondanceAddress:
$ref: '#/components/schemas/Address'
partyRoles:
type: array
items:
$ref: '#/components/schemas/PartyRole'
# ─── Party (top-level document) ───────────────────────────────────
Party:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
title:
type: string
nullable: true
example: "Mr"
firstName:
type: string
nullable: true
example: "John"
lastName:
type: string
nullable: true
example: "Doe"
name:
type: string
nullable: true
example: "John Doe"
customerNumber:
type: string
example: "C77473"
description: "This is the L or the C number provided from the SAM system."
partyType:
type: string
nullable: true
example: Person
enum:
- Person
- Organisation
state:
type: string
nullable: true
enum:
- active
- inactive
communication:
type: array
items:
$ref: '#/components/schemas/Communication'
correspondanceAddress:
$ref: '#/components/schemas/Address'
partyRoles:
type: array
items:
$ref: '#/components/schemas/PartyRoleWithSite'
lastUpdatedDate:
type: string
format: date-time
description: "The timestamp of the last time the Party record was updated"
# ─── Site (top-level document) ────────────────────────────────────
Site:
type: object
properties:
id:
type: string
format: uuid
readOnly: true
type:
$ref: '#/components/schemas/SiteType'
name:
type: string
example: Hansel & Gretel Farm
state:
type: string
nullable: true
enum:
- active
- inactive
startDate:
type: string
format: date-time
endDate:
type: string
format: date-time
nullable: true
source:
type: string
nullable: true
example: SAM
destroyIdentityDocumentsFlag:
type: boolean
nullable: true
location:
$ref: '#/components/schemas/Location'
identifiers:
type: array
items:
$ref: '#/components/schemas/SiteIdentifier'
parties:
type: array
items:
$ref: '#/components/schemas/SiteParty'
species:
type: array
items:
$ref: '#/components/schemas/SpeciesSummary'
marks:
type: array
items:
$ref: '#/components/schemas/GroupMark'
activities:
type: array
items:
$ref: '#/components/schemas/SiteActivity'
lastUpdatedDate:
type: string
format: date-time
description: "The timestamp of the last time the Site record was updated"
# ─── Species (reference) ──────────────────────────────────────────
Species:
type: object
description: A species reference record.
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the reference object."
code:
type: string
example: CTT
description: "The species code."
name:
type: string
example: Cattle
description: "The species name."
lastUpdatedDate:
type: string
format: date-time
nullable: true
description: "The timestamp of the last time the Species record was updated."
required:
- code
- name
SpeciesListResponse:
type: object
description: The list of species wrapped with a count of available records.
properties:
count:
type: integer
description: Total number of species returned (or available).
values:
type: array
items:
$ref: '#/components/schemas/Species'
# ─── Identifier Type (reference) ──────────────────────────────────
IdentifierType:
type: object
description: An identifier type reference record.
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the reference object."
code:
type: string
example: CPHN
description: "The identifier type code."
name:
type: string
example: "CPH Number"
description: "The identifier type name."
description:
type: string
nullable: true
example: "Description for CPH Number"
description: "The identifier type description."
lastUpdatedDate:
type: string
format: date-time
nullable: true
description: "The timestamp of the last time the Identifier Type record was updated."
required:
- code
- name
IdentifierTypeListResponse:
type: object
description: The list of identifier types wrapped with a count of available records.
properties:
count:
type: integer
description: Total number of identifier types returned.
values:
type: array
items:
$ref: '#/components/schemas/IdentifierType'
# ─── Role (reference) ─────────────────────────────────────────────
RoleListResponse:
type: object
description: The list of roles wrapped with a count of available records.
properties:
count:
type: integer
description: Total number of roles returned (or available).
values:
type: array
items:
$ref: '#/components/schemas/Role'
# ─── Reference Site Type (reference) ──────────────────────────────
ReferenceSiteType:
type: object
description: |-
An isolated site type reference record. Distinct from the SiteTypes endpoint which returns site types with their associated activities;
this DTO returns only the site type information without the associated activities.
properties:
id:
type: string
format: uuid
readOnly: true
description: "This is an immutable field which represents the golden key of the reference object."
code:
type: string
example: AH
description: "The site type code."
name:
type: string
example: "Agricultural Holding"
description: "The site type name."
required:
- code
- name
ReferenceSiteTypeListResponse:
type: object
description: The list of reference site types wrapped with a count of available records.
properties:
count:
type: integer
description: Total number of site types returned (or available).
values:
type: array
items:
$ref: '#/components/schemas/ReferenceSiteType'
# ─── Site Type with Activities ────────────────────────────────────
SiteTypeInfo:
type: object
description: Represents the type classification of a site (code and name).
properties:
code:
type: string
example: MA
description: "The business key/code for the site type."
name:
type: string
example: Market
description: "The descriptive name of the site type."
required:
- code
- name
SiteActivityInfo:
type: object
description: Represents an activity that can occur at a site type.
properties:
code:
type: string
example: STM
description: "The business key/code for the site activity."
name:
type: string
example: "Store Market"
description: "The descriptive name of the site activity."
required:
- code
- name
SiteTypeWithActivities:
type: object
description: A Site Type with its associated Site Activities.
properties:
id:
type: string
format: uuid
readOnly: true
description: Unique identifier for this site type.
type:
$ref: '#/components/schemas/SiteTypeInfo'
activities:
type: array
description: The activities associated with this site type. Empty if no activities apply.
items:
$ref: '#/components/schemas/SiteActivityInfo'
required:
- id
- type
# ─── Error Schemas ────────────────────────────────────────────────
ProblemDetails:
type: object
description: |-
The ProblemDetails object provides detailed information about errors that occurred during an API call execution.
This problem object:
* **conforms** to the [RFC9457](https://www.rfc-editor.org/info/rfc9457) (formerly [RFC7807](https://tools.ietf.org/html/rfc7807)).
* is **extended** with the following properties:
* **errors** - an array of errors providing contextual information on the root cause of the problem.
The ProblemDetails referenced by this domain utilize the [SmartBear Problems Registry](https://problems-registry.smartbear.com/).
properties:
type:
type: string
description: "A URI reference that identifies the problem type."
format: uri
maxLength: 1024
status:
type: integer
description: "The HTTP status code generated by the origin server for this occurrence of the problem."
format: int32
minimum: 100
maximum: 599
title:
type: string
description: "A short, human-readable summary of the problem type."
maxLength: 1024
detail:
type: string
description: "A human-readable explanation specific to this occurrence of the problem."
maxLength: 4096
instance:
type: string
description: "A URI reference that identifies the specific occurrence of the problem."
format: uri
errors:
type: array
nullable: true
items:
$ref: '#/components/schemas/ErrorDetail'
required:
- type
- title
ErrorDetail:
type: object
description: "An object to provide explicit details on a problem towards an API consumer."
properties:
detail:
type: string
description: "A granular description on the specific error related to a body property, query parameter, path parameters, and/or header."
maxLength: 4096
source:
type: string
description: "The source of the error, e.g. the name of a header, query or path parameter, or a JSON pointer to a specific request body property."
maxLength: 1024
value:
type: string
description: "The value that has caused the error, e.g. the value passed in as a header, query or path parameter, or a request body property that lead to the error."
code:
type: string
description: "A string containing additional provider specific codes to identify the error context."
maxLength: 50
required:
- detail
responses:
BadRequest:
description: "The request was malformed or could not be processed."
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
examples:
invalidRequestSchema:
$ref: '#/components/examples/invalid-request-schema'
Unauthorized:
description: "Access token is not set or invalid."
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
examples:
unauthorized:
$ref: '#/components/examples/unauthorized'
Forbidden:
description: "The requestor is not authorized to perform this operation on the resource."
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
examples:
forbidden:
$ref: '#/components/examples/forbidden'
NotFound:
description: "The requested resource was not found."
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
examples:
notFound:
$ref: '#/components/examples/not-found'
ServerError:
description: "The server encountered an unexpected error"
content:
application/problem+json:
schema: