The following documentation is also available in these formats:
API Reference v1.0
Parameter | In | Type | Required | Description |
nomsId |
path |
string |
true |
|
Status | Description | Schema |
200 |
OK
{
"code": "string",
"name": {
"forename": "string",
"surname": "string"
},
"team": {
"code": "string",
"description": "string",
"email": "string",
"telephone": "string"
},
"email": "string",
"telephone": "string",
"unallocated": "boolean"
}
|
Manager
|
/probation-cases/{nomisId}/documents
get
List documents for a case
Returns basic personal information for the case, along with a list of person-level documents
and event-level documents. Documents are annotated with the type and description, based on what they relate
to in the probation case (e.g. a court appearance, an event, etc).
Parameters
Parameter | In | Type | Required | Description |
nomisId |
path |
string |
true |
|
Responses
Status | Description | Schema |
200 |
OK
{
"crn": "string",
"name": {
"forename": "string",
"surname": "string"
},
"documents": [
{
"id": "string",
"name": "string",
"description": "string",
"type": "string",
"author": "string",
"createdAt": "string"
}
],
"convictions": [
{
"title": "string",
"offence": "string",
"date": "string",
"active": "boolean",
"documents": [
{
"id": "string",
"name": "string",
"description": "string",
"type": "string",
"author": "string",
"createdAt": "string"
}
],
"institutionName": "string"
}
]
}
|
ProbationDocumentsResponse
|
/document/{id}
get
Download document content
Parameters
Parameter | In | Type | Required | Description |
id |
path |
string |
true |
|
Responses
Schemas
Manager
Name | Type | Required | Description | Schema |
code |
string |
true |
|
|
name |
object |
true |
|
Name
|
team |
object |
true |
|
Team
|
email |
string |
false |
|
|
telephone |
string |
false |
|
|
unallocated |
boolean |
true |
|
|
Name
Name | Type | Required | Description | Schema |
forename |
string |
true |
|
|
surname |
string |
true |
|
|
Team
Name | Type | Required | Description | Schema |
code |
string |
true |
|
|
description |
string |
true |
|
|
email |
string |
false |
|
|
telephone |
string |
false |
|
|
Conviction
Name | Type | Required | Description | Schema |
title |
string |
false |
|
|
offence |
string |
true |
|
|
date |
string |
true |
|
|
active |
boolean |
true |
|
|
documents |
array |
true |
|
Document
|
institutionName |
string |
false |
|
|
Document
Name | Type | Required | Description | Schema |
id |
string |
true |
|
|
name |
string |
true |
|
|
description |
string |
false |
|
|
type |
string |
true |
|
|
author |
string |
false |
|
|
createdAt |
string |
false |
|
|
ProbationDocumentsResponse
Name | Type | Required | Description | Schema |
crn |
string |
true |
|
|
name |
object |
true |
|
Name
|
documents |
array |
true |
|
Document
|
convictions |
array |
true |
|
Conviction
|
StreamingResponseBody