The following documentation is also available in these formats:
API Reference v1.0
/probation-cases/access
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
username | query | string | false |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
UserAccess |
post
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
username | query | string | false |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
UserAccess |
/search/probation-cases
post
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
/reference-data
get
Gets delius reference data
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
ProbationReferenceData |
/identifier-converter/noms-to-crn/{nomsId}
get
Gets the corresponding CRN from delius for the provided nomsId if found
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
nomsId | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
PersonIdentifier |
/exists-in-delius/crn/{crn}
get
Check if crn exists in delius for the provided crn
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
PersonExists |
/case/{crn}/supervisions
get
Get a list of supervisions (called “events” in Delius) for a probation case, by CRN
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
SupervisionResponse |
/case/{crn}/addresses
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
AddressWrapper |
Schemas
CrnRequest
Name | Type | Required | Description | Schema |
---|---|---|---|---|
crns | array | true |
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 |
SearchRequest
Name | Type | Required | Description | Schema |
---|---|---|---|---|
firstName | string | false | ||
surname | string | false | ||
dateOfBirth | string | false | ||
pncNumber | string | false | ||
crn | string | false | ||
nomsNumber | string | false | ||
includeAliases | boolean | true |
CaseAlias
Name | Type | Required | Description | Schema |
---|---|---|---|---|
firstName | string | true | ||
surname | string | true | ||
dateOfBirth | string | true | ||
gender | string | true | ||
middleNames | array | true |
CaseDisability
Name | Type | Required | Description | Schema |
---|---|---|---|---|
disabilityType | object | true | CodedValue | |
condition | object | false | CodedValue | |
startDate | string | false | ||
endDate | string | false | ||
notes | string | false |
CaseProfile
Name | Type | Required | Description | Schema |
---|---|---|---|---|
ethnicity | string | false | ||
nationality | string | false | ||
religion | string | false | ||
sexualOrientation | string | false | ||
disabilities | array | true | CaseDisability |
CodedValue
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
ContactDetails
Name | Type | Required | Description | Schema |
---|---|---|---|---|
phoneNumbers | array | true | PhoneNumber | |
emailAddresses | array | true |
OtherIds
Name | Type | Required | Description | Schema |
---|---|---|---|---|
crn | string | true | ||
pncNumber | string | false | ||
nomsNumber | string | false | ||
croNumber | string | false |
PhoneNumber
Name | Type | Required | Description | Schema |
---|---|---|---|---|
number | string | true | ||
type | string | true |
ProbationCaseDetail
Name | Type | Required | Description | Schema |
---|---|---|---|---|
otherIds | object | true | OtherIds | |
firstName | string | true | ||
surname | string | true | ||
dateOfBirth | string | true | ||
gender | string | true | ||
middleNames | array | true | ||
offenderProfile | object | true | CaseProfile | |
contactDetails | object | false | ContactDetails | |
offenderAliases | array | true | CaseAlias | |
activeProbationManagedSentence | boolean | true | ||
currentRestriction | boolean | true | ||
restrictionMessage | string | false | ||
currentExclusion | boolean | true | ||
exclusionMessage | string | false | ||
age | integer | true |
ProbationReferenceData
Name | Type | Required | Description | Schema |
---|---|---|---|---|
probationReferenceData | object | true |
RefData
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | reference data code |
|
description | string | true | reference data description |
PersonIdentifier
Name | Type | Required | Description | Schema |
---|---|---|---|---|
crn | string | true | ||
nomsId | string | true |
PersonExists
Name | Type | Required | Description | Schema |
---|---|---|---|---|
crn | string | true | ||
existsInDelius | boolean | true |
CourtAppearance
Name | Type | Required | Description | Schema |
---|---|---|---|---|
type | string | true | ||
date | string | true | ||
court | string | true | ||
plea | string | false |
DynamicRiskRegistration
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
startDate | string | true | ||
reviewDate | string | false | ||
notes | string | false |
Manager
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
name | object | true | Name | |
username | string | false | ||
string | false | |||
telephoneNumber | string | false | ||
team | object | true | Team | |
allocated | boolean | true |
MappaDetail
Name | Type | Required | Description | Schema |
---|---|---|---|---|
level | integer | false | ||
levelDescription | string | false | ||
category | integer | false | ||
categoryDescription | string | false | ||
startDate | string | true | ||
reviewDate | string | false | ||
notes | string | false |
Name
Name | Type | Required | Description | Schema |
---|---|---|---|---|
forename | string | true | ||
surname | string | true |
Offence
Name | Type | Required | Description | Schema |
---|---|---|---|---|
date | string | false | ||
count | integer | false | ||
code | string | true | ||
description | string | true | ||
mainCategory | object | false | OffenceCategory | |
subCategory | object | false | OffenceCategory | |
schedule15SexualOffence | boolean | false | ||
schedule15ViolentOffence | boolean | false |
OffenceCategory
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
PersonStatusRegistration
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
startDate | string | true | ||
reviewDate | string | false | ||
notes | string | false |
Provider
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
Sentence
Name | Type | Required | Description | Schema |
---|---|---|---|---|
description | string | true | ||
date | string | true | ||
length | integer | false | ||
lengthUnits | string | false | ||
custodial | boolean | true |
Supervision
Name | Type | Required | Description | Schema |
---|---|---|---|---|
number | integer | true | ||
active | boolean | true | ||
date | string | false | ||
sentence | object | false | Sentence | |
mainOffence | object | false | Offence | |
additionalOffences | array | false | Offence | |
courtAppearances | array | false | CourtAppearance |
SupervisionResponse
Name | Type | Required | Description | Schema |
---|---|---|---|---|
communityManager | object | true | Manager | |
mappaDetail | object | false | MappaDetail | |
supervisions | array | true | Supervision | |
dynamicRisks | array | true | DynamicRiskRegistration | |
personStatus | array | true | PersonStatusRegistration |
Team
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
string | false | |||
telephoneNumber | string | false | ||
provider | object | true | Provider |
AddressWrapper
Name | Type | Required | Description | Schema |
---|---|---|---|---|
contactDetails | object | true | ContactDetailAddresses |
CaseAddress
Name | Type | Required | Description | Schema |
---|---|---|---|---|
noFixedAbode | boolean | true | ||
type | object | true | CodedValue | |
buildingName | string | false | ||
addressNumber | string | false | ||
streetName | string | false | ||
town | string | false | ||
district | string | false | ||
county | string | false | ||
postcode | string | false | ||
from | string | false | ||
to | string | false | ||
notes | string | false |
ContactDetailAddresses
Name | Type | Required | Description | Schema |
---|---|---|---|---|
addresses | array | true | CaseAddress |