The following documentation is also available in these formats:
API Reference v1.0
/users/access
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
username | query | string | false | |
crns | query | array | true |
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 |
/probation-cases/summaries
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crns | query | array | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
CaseSummaries |
post
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
CaseSummaries |
/teams/managingCase/{crn}
get
List all teams involved in managing the probation case
A probation case may be managed by staff members who are associated with multiple teams in Delius. Approve Premises users need to view all applications that may be covered by direct colleagues in order to cover absence and other workload-related issues. Respond with a list of every team code that covers the probation case identified by the CRN to enable the Approved Premises service to present the relevant list of Approved Premises applications to it’s users.
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true | |
staffCode | query | string | false |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
TeamCodeResponse |
/staff
get
Get the staff details by code
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
code | query | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
StaffDetail |
/staff/{userName}
get
Get the staff details by username
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
userName | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
StaffDetail |
/probation-cases/{crn}/details
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
CaseDetail |
/probation-case/{crn}/referrals
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
ExistingReferrals |
/probation-case/{crn}/referrals/{bookingId}
get
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true | |
bookingId | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
ReferralDetail |
/documents/{crn}/{id}
get
Download document content
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true | |
id | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
StreamingResponseBody |
/documents/{crn}/all
get
List of documents held in Delius for the probation case
List of documents available in Delius for the probation case identified by the CRN provided in the request. Document list includes summary information on the type and purpose of document held.
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
crn | path | string | true |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
/docs/asyncapi
get
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
/approved-premises/{code}/staff
get
List all members of staff that are keyworkers in the Approved Premises
An Approved Premises is defined in Delius as part of reference data. Probation staff members can be linked to an Approved Premises as either staff members or keyworkers via the “Approved Premises and Teams” screen of the Delius user interface. Keyworkers are defined via the “Approved Premises and Key Workers” screen of the Delius user interface. Respond with a list of all members of staff defined as keyworkers for the Approved Premises identified by the requested code.
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
code | path | string | true | |
keyWorker | query | boolean | false | |
pageable | query | object | false |
Responses
Status | Description | Schema |
---|---|---|
200 |
OK
|
PagedModelStaffResponse |
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 |
Borough
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
CaseSummaries
Name | Type | Required | Description | Schema |
---|---|---|---|---|
cases | array | true | CaseSummary |
CaseSummary
Name | Type | Required | Description | Schema |
---|---|---|---|---|
crn | string | true | ||
nomsId | string | false | ||
pnc | string | false | ||
name | object | true | Name | |
dateOfBirth | string | true | ||
gender | string | false | ||
profile | object | false | Profile | |
manager | object | true | Manager | |
currentExclusion | boolean | true | ||
currentRestriction | boolean | true |
Ldu
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
name | string | true |
Manager
Name | Type | Required | Description | Schema |
---|---|---|---|---|
team | object | true | Team |
Name
Name | Type | Required | Description | Schema |
---|---|---|---|---|
forename | string | true | ||
surname | string | true | ||
middleNames | array | true |
Profile
Name | Type | Required | Description | Schema |
---|---|---|---|---|
ethnicity | string | false | ||
genderIdentity | string | false | ||
nationality | string | false | ||
religion | string | false |
Team
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
name | string | true | ||
ldu | object | true | Ldu | |
borough | object | false | Borough | |
startDate | string | true | ||
endDate | string | false |
TeamCodeResponse
Name | Type | Required | Description | Schema |
---|---|---|---|---|
teamCodes | array | true |
PersonName
Name | Type | Required | Description | Schema |
---|---|---|---|---|
forename | string | true | ||
surname | string | true | ||
middleName | string | false |
ProbationArea
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
StaffDetail
Name | Type | Required | Description | Schema |
---|---|---|---|---|
string | false | |||
telephoneNumber | string | false | ||
staffIdentifier | integer | true | ||
teams | array | true | Team | |
probationArea | object | true | ProbationArea | |
username | string | false | ||
name | object | true | PersonName | |
code | string | true | ||
active | boolean | true |
CaseDetail
Name | Type | Required | Description | Schema |
---|---|---|---|---|
case | object | true | CaseSummary | |
offences | array | true | Offence | |
registrations | array | true | Registration | |
mappaDetail | object | false | MappaDetail | |
careLeaver | boolean | true | ||
veteran | boolean | true |
MappaDetail
Name | Type | Required | Description | Schema |
---|---|---|---|---|
level | integer | false | ||
levelDescription | string | false | ||
category | integer | false | ||
categoryDescription | string | false | ||
startDate | string | true | ||
lastUpdated | string | true |
Offence
Name | Type | Required | Description | Schema |
---|---|---|---|---|
id | integer | true | ||
code | string | true | ||
description | string | true | ||
date | string | false | ||
main | boolean | true | ||
eventId | integer | true | ||
eventNumber | string | true |
Registration
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true | ||
startDate | string | true |
ApReferral
Name | Type | Required | Description | Schema |
---|---|---|---|---|
referralDate | string | true | ||
expectedArrivalDate | string | false | ||
expectedDepartureDate | string | false | ||
decisionDate | string | false | ||
approvedPremises | object | true | ApprovedPremises |
ApprovedPremises
Name | Type | Required | Description | Schema |
---|---|---|---|---|
description | string | true |
ExistingReferrals
Name | Type | Required | Description | Schema |
---|---|---|---|---|
crn | string | true | ||
referrals | array | true | ApReferral |
ReferralDetail
Name | Type | Required | Description | Schema |
---|---|---|---|---|
referral | object | true | ApReferral | |
arrivedAt | string | false | ||
departedAt | string | false |
StreamingResponseBody
DocumentResponse
Name | Type | Required | Description | Schema |
---|---|---|---|---|
id | string | false | ||
level | string | true | ||
eventNumber | string | false | ||
filename | string | true | ||
typeCode | string | true | ||
typeDescription | string | true | ||
dateSaved | string | true | ||
dateCreated | string | true | ||
description | string | false |
Pageable
Name | Type | Required | Description | Schema |
---|---|---|---|---|
page | integer | false | ||
size | integer | false | ||
sort | array | false |
PageMetadata
Name | Type | Required | Description | Schema |
---|---|---|---|---|
size | integer | false | ||
number | integer | false | ||
totalElements | integer | false | ||
totalPages | integer | false |
PagedModelStaffResponse
Name | Type | Required | Description | Schema |
---|---|---|---|---|
content | array | false | StaffResponse | |
page | object | false | PageMetadata |
StaffGrade
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
description | string | true |
StaffResponse
Name | Type | Required | Description | Schema |
---|---|---|---|---|
code | string | true | ||
name | object | true | PersonName | |
grade | object | false | StaffGrade | |
keyWorker | boolean | true |