Skip to main content
API Reference

The following documentation is also available in these formats:

API Reference v1.0

/probation-cases/{identifier}

get

Parameters

ParameterInTypeRequiredDescription
identifier path string true

Responses

StatusDescriptionSchema
200

OK

{
  "identifiers": {
    "deliusId": "integer",
    "crn": "string",
    "nomsId": "string",
    "prisonerNumber": "string",
    "pnc": "string",
    "cro": "string",
    "ni": "string"
  },
  "name": {
    "forename": "string",
    "middleName": "string",
    "surname": "string",
    "previousSurname": "string",
    "preferred": "string"
  },
  "dateOfBirth": "string",
  "title": {
    "code": "string",
    "description": "string"
  },
  "gender": {
    "code": "string",
    "description": "string"
  },
  "nationality": {
    "code": "string",
    "description": "string"
  },
  "ethnicity": {
    "code": "string",
    "description": "string"
  },
  "ethnicityDescription": "string",
  "contactDetails": {
    "telephone": "string",
    "mobile": "string",
    "email": "string"
  },
  "aliases": [
    {
      "name": {
        "forename": "string",
        "middleName": "string",
        "surname": "string",
        "previousSurname": "string",
        "preferred": "string"
      },
      "dateOfBirth": "string"
    }
  ],
  "addresses": [
    {
      "fullAddress": "string",
      "postcode": "string",
      "noFixedAbode": "boolean",
      "status": {
        "code": "string",
        "description": "string"
      },
      "startDate": "string",
      "endDate": "string"
    }
  ],
  "excludedFrom": {
    "message": "string",
    "users": [
      {
        "username": "string"
      }
    ]
  },
  "restrictedTo": {
    "message": "string",
    "users": [
      {
        "username": "string"
      }
    ]
  },
  "sentences": [
    {
      "date": "string",
      "active": "boolean"
    }
  ]
}
PersonDetail

/all-probation-cases

get

Parameters

ParameterInTypeRequiredDescription
pageable query object true

Responses

StatusDescriptionSchema
200

OK

{
  "content": [
    {
      "identifiers": {
        "deliusId": "integer",
        "crn": "string",
        "nomsId": "string",
        "prisonerNumber": "string",
        "pnc": "string",
        "cro": "string",
        "ni": "string"
      },
      "name": {
        "forename": "string",
        "middleName": "string",
        "surname": "string",
        "previousSurname": "string",
        "preferred": "string"
      },
      "dateOfBirth": "string",
      "title": {
        "code": "string",
        "description": "string"
      },
      "gender": {
        "code": "string",
        "description": "string"
      },
      "nationality": {
        "code": "string",
        "description": "string"
      },
      "ethnicity": {
        "code": "string",
        "description": "string"
      },
      "ethnicityDescription": "string",
      "contactDetails": {
        "telephone": "string",
        "mobile": "string",
        "email": "string"
      },
      "aliases": [
        {
          "name": {
            "forename": "string",
            "middleName": "string",
            "surname": "string",
            "previousSurname": "string",
            "preferred": "string"
          },
          "dateOfBirth": "string"
        }
      ],
      "addresses": [
        {
          "fullAddress": "string",
          "postcode": "string",
          "noFixedAbode": "boolean",
          "status": {
            "code": "string",
            "description": "string"
          },
          "startDate": "string",
          "endDate": "string"
        }
      ],
      "excludedFrom": {
        "message": "string",
        "users": [
          {
            "username": "string"
          }
        ]
      },
      "restrictedTo": {
        "message": "string",
        "users": [
          {
            "username": "string"
          }
        ]
      },
      "sentences": [
        {
          "date": "string",
          "active": "boolean"
        }
      ]
    }
  ],
  "page": {
    "size": "integer",
    "number": "integer",
    "totalElements": "integer",
    "totalPages": "integer"
  }
}
PagedModelPersonDetail

Schemas

Address

NameTypeRequiredDescriptionSchema
fullAddress string true
postcode string true
noFixedAbode boolean true
status object true CodeDescription
startDate string true
endDate string false

Alias

NameTypeRequiredDescriptionSchema
name object true Name
dateOfBirth string true

CodeDescription

NameTypeRequiredDescriptionSchema
code string true
description string true

ContactDetails

NameTypeRequiredDescriptionSchema
telephone string false
mobile string false
email string false

Identifiers

NameTypeRequiredDescriptionSchema
deliusId integer true
crn string true
nomsId string false
prisonerNumber string false
pnc string false
cro string false
ni string false

LimitedAccess

NameTypeRequiredDescriptionSchema
message string false
users array true LimitedAccessUser

LimitedAccessUser

NameTypeRequiredDescriptionSchema
username string true

Name

NameTypeRequiredDescriptionSchema
forename string true
middleName string false
surname string true
previousSurname string false
preferred string false

PersonDetail

NameTypeRequiredDescriptionSchema
identifiers object true Identifiers
name object true Name
dateOfBirth string true
title object false CodeDescription
gender object false CodeDescription
nationality object false CodeDescription
ethnicity object false CodeDescription
ethnicityDescription string false
contactDetails object false ContactDetails
aliases array true Alias
addresses array true Address
excludedFrom object false LimitedAccess
restrictedTo object false LimitedAccess
sentences array true Sentence

Sentence

NameTypeRequiredDescriptionSchema
date string true
active boolean true

Pageable

NameTypeRequiredDescriptionSchema
page integer false
size integer false
sort array false

PageMetadata

PagedModelPersonDetail

NameTypeRequiredDescriptionSchema
content array false PersonDetail
page object false PageMetadata