@@ -722,6 +722,37 @@ paths:
722
722
NoQueryParametersBadRequestError :
723
723
$ref : " #/components/examples/InternalServerError"
724
724
725
+ /v1/persons/{Id}/person-responsible-officer :
726
+ get :
727
+ summary : Returns the person responsible officer associated with a person.
728
+ parameters :
729
+ - $ref : " #/components/parameters/HmppsId"
730
+ responses :
731
+ " 200 " :
732
+ description : Successfully found the person responsible officer for a person with the provided HMPPS ID.
733
+ content :
734
+ application/json :
735
+ schema :
736
+ $ref : " #/components/schemas/PersonResponsibleOfficer"
737
+ " 404 " :
738
+ description : Failed to find licenses for a person with the provided HMPPS ID.
739
+ content :
740
+ application/json :
741
+ schema :
742
+ $ref : " #/components/schemas/Error"
743
+ examples :
744
+ PersonNotFoundError :
745
+ $ref : " #/components/examples/PersonNotFoundError"
746
+ " 500 " :
747
+ description : An upstream service was not responding, so we cannot verify the accuracy of any data we did get.
748
+ content :
749
+ application/json :
750
+ schema :
751
+ $ref : " #/components/schemas/Error"
752
+ examples :
753
+ NoQueryParametersBadRequestError :
754
+ $ref : " #/components/examples/InternalServerError"
755
+
725
756
/v1/persons/{HmppsId}/licences/conditions :
726
757
get :
727
758
summary : Returns license conditions associated with a person.
@@ -1269,6 +1300,19 @@ components:
1269
1300
releaseDate :
1270
1301
type : string
1271
1302
format : date
1303
+ CommunityOffenderManager :
1304
+ type : object
1305
+ properties :
1306
+ name :
1307
+ $ref : " #/components/schemas/PersonResponsibleOfficerName"
1308
+ email :
1309
+ type : string
1310
+ nullable : true
1311
+ telephoneNumber :
1312
+ type : string
1313
+ nullable : true
1314
+ team :
1315
+ $ref : " #/components/schemas/PersonResponsibleOfficerTeam"
1272
1316
ContactDetails :
1273
1317
properties :
1274
1318
phoneNumbers :
@@ -1755,6 +1799,30 @@ components:
1755
1799
description : Currently a hmppsId is a CRN identifier however this will change in the future to be a new unique Hmpps identifier
1756
1800
contactDetails :
1757
1801
$ref : " #/components/schemas/ContactDetails"
1802
+ PersonResponsibleOfficerName :
1803
+ type : object
1804
+ properties :
1805
+ forename :
1806
+ type : string
1807
+ nullable : true
1808
+ surname :
1809
+ type : string
1810
+ nullable : true
1811
+ PersonResponsibleOfficerTeam :
1812
+ type : object
1813
+ properties :
1814
+ code :
1815
+ type : string
1816
+ nullable : true
1817
+ description :
1818
+ type : string
1819
+ nullable : true
1820
+ email :
1821
+ type : string
1822
+ nullable : true
1823
+ telephoneNumber :
1824
+ type : string
1825
+ nullable : true
1758
1826
PhoneNumbers :
1759
1827
type : array
1760
1828
items :
@@ -1768,6 +1836,13 @@ components:
1768
1836
type : string
1769
1837
example : " TELEPHONE"
1770
1838
description : " The type of number"
1839
+ PersonResponsibleOfficer :
1840
+ type : object
1841
+ properties :
1842
+ prisonOffenderOfficer :
1843
+ $ref : " #/components/schemas/PrisonOffenderOfficer"
1844
+ communityOffenderManager :
1845
+ $ref : " #/components/schemas/CommunityOffenderManager"
1771
1846
PersonLicencesData :
1772
1847
type : object
1773
1848
properties :
@@ -1839,7 +1914,23 @@ components:
1839
1914
minItems : 0
1840
1915
items :
1841
1916
$ref : " #/components/schemas/ReasonableAdjustment"
1842
-
1917
+ Prison :
1918
+ type : object
1919
+ properties :
1920
+ code :
1921
+ type : string
1922
+ nullable : true
1923
+ PrisonOffenderOfficer :
1924
+ type : object
1925
+ properties :
1926
+ forename :
1927
+ type : string
1928
+ nullable : true
1929
+ surname :
1930
+ type : string
1931
+ nullable : true
1932
+ prison :
1933
+ $ref : " #/components/schemas/Prison"
1843
1934
1844
1935
Punishment :
1845
1936
type : object
0 commit comments