The following documentation is also available in these formats:
API Reference v1.0
/users/{username}/access
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
username | path | string | true | |
crns | query | array | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
UserAccess |
post
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
username | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
UserAccess |
/probation-case/{crn}/referrals
put
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
204 |
No Content |
/probation-case/{crn}/referrals/{referralId}/appointments
put
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true | |
referralId | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
/users/{username}/managed-cases
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
username | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
ManagedCases |
/users/{username}/details
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
username | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
UserDetail |
/probation-delivery-units
get
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
/probation-case/{crn}/responsible-officer
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
ResponsibleOfficer |
/probation-case/{crn}/identifiers
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
CaseIdentifier |
/probation-case/{crn}/details
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
CaseDetail |
/probation-case/{crn}/convictions
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
CaseConvictions |
/probation-case/{crn}/convictions/{id}
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true | |
id | path | integer | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
CaseConviction |
/office-locations
get
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
/docs/asyncapi
get
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
Schemas
CaseAccess
Name | Type | Required | Description | Schema |
---|---|---|---|---|
crn | string | true | ||
userExcluded | boolean | true | ||
userRestricted | boolean | true | ||
exclusionMessage | string | false | ||
restrictionMessage | string | false |
UserAccess
Name | Type | Required | Description | Schema |
---|---|---|---|---|
access | array | true | CaseAccess |
ReferralStarted
Name | Type | Required | Description | Schema |
---|---|---|---|---|
referralId | string | true | ||
startedAt | string | true | ||
contractType | string | true | ||
sentenceId | integer | true | ||
notes | string | true | ||
urn | string | true |
MergeAppointment
Name | Type | Required | Description | Schema |
---|---|---|---|---|
id | string | true | ||
referralId | string | true | ||
referralReference | string | true | ||
start | string | true | ||
durationInMinutes | integer | true | ||
notes | string | false | ||
officeLocationCode | string | false | ||
countsTowardsRar | boolean | true | ||
outcome | object | false | Outcome | |
sentenceId | integer | false | ||
previousId | string | false | ||
deliusId | integer | false | ||
rescheduleRequestedBy | string | false | ||
end | string | true | ||
typeCode | string | true | ||
urn | string | true | ||
previousUrn | string | false | ||
referralUrn | string | true | ||
rescheduleOutcome | string | true |
Outcome
Name | Type | Required | Description | Schema |
---|---|---|---|---|
attended | string | true | ||
didSessionHappen | boolean | false | ||
noSessionReasonType | string | false | ||
notify | boolean | true | ||
sessionHappened | boolean | true |
CaseIdentifier
Name | Type | Required | Description | Schema |
---|---|---|---|---|
crn | string | true | ||
nomsId | string | false |
ManagedCases
Name | Type | Required | Description | Schema |
---|---|---|---|---|
managedCases | array | true | CaseIdentifier |
Name
Name | Type | Required | Description | Schema |
---|---|---|---|---|
forename | string | true | ||
surname | string | true |
UserDetail
Name | Type | Required | Description | Schema |
---|---|---|---|---|
username | string | true | ||
name | object | true | Name | |
string | false |
DeliveryUnit
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
region | object | true | Region |
Region
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
Address
Name | Type | Required | Description | Schema |
---|---|---|---|---|
buildingName | string | false | ||
buildingNumber | string | false | ||
streetName | string | false | ||
district | string | false | ||
town | string | false | ||
county | string | false | ||
postcode | string | false |
Manager
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
name | object | true | Name | |
username | string | false | ||
string | false | |||
telephoneNumber | string | false | ||
responsibleOfficer | boolean | true | ||
pdu | object | true | Pdu | |
team | object | true | Team | |
officeLocations | array | true | OfficeLocation | |
unallocated | boolean | true |
OfficeLocation
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
address | object | false | Address | |
telephoneNumber | string | false | ||
provider | object | true | Provider |
Pdu
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
Provider
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
ResponsibleOfficer
Name | Type | Required | Description | Schema |
---|---|---|---|---|
communityManager | object | true | Manager | |
prisonManager | object | false | Manager |
Team
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
string | false | |||
telephoneNumber | string | false |
CaseDetail
Name | Type | Required | Description | Schema |
---|---|---|---|---|
crn | string | true | ||
name | object | true | Name | |
dateOfBirth | string | true | ||
gender | string | false | ||
profile | object | false | Profile | |
contactDetails | object | true | ContactDetails |
ContactDetails
Name | Type | Required | Description | Schema |
---|---|---|---|---|
noFixedAbode | boolean | true | ||
mainAddress | object | false | Address | |
emailAddress | string | false | ||
telephoneNumber | string | false | ||
mobileNumber | string | false |
Disability
Name | Type | Required | Description | Schema |
---|---|---|---|---|
type | string | true | ||
startDate | string | true | ||
notes | string | false |
Profile
Name | Type | Required | Description | Schema |
---|---|---|---|---|
primaryLanguage | string | false | ||
ethnicity | string | false | ||
religion | string | false | ||
disabilities | array | true | Disability |
CaseConvictions
Name | Type | Required | Description | Schema |
---|---|---|---|---|
caseDetail | object | true | CaseDetail | |
convictions | array | true | Conviction |
Conviction
Name | Type | Required | Description | Schema |
---|---|---|---|---|
id | integer | true | ||
date | string | false | ||
sentence | object | true | Sentence | |
mainOffence | object | true | Offence | |
active | boolean | true |
Offence
Name | Type | Required | Description | Schema |
---|---|---|---|---|
category | string | true | ||
subCategory | string | true |
Sentence
Name | Type | Required | Description | Schema |
---|---|---|---|---|
description | string | true | ||
expectedEndDate | string | false |
CaseConviction
Name | Type | Required | Description | Schema |
---|---|---|---|---|
caseDetail | object | true | CaseDetail | |
conviction | object | true | Conviction |