Skip to main content
API Reference

The following documentation is also available in these formats:

API Reference v1.0

/nomis-case-note/{crn}

post

Parameters

ParameterInTypeRequiredDescription
crn path string true

Responses

StatusDescriptionSchema
201

Created

/appointments/{crn}

get

Parameters

ParameterInTypeRequiredDescription
crn path string true
startDate query string true
endDate query string true
page query integer true
size query integer true

Responses

StatusDescriptionSchema
200

OK

{
  "results": [
    {
      "type": {
        "code": "string",
        "description": "string"
      },
      "dateTime": "string",
      "duration": "PT30M",
      "staff": {
        "code": "string",
        "name": {
          "forename": "string",
          "surname": "string"
        },
        "email": "string",
        "telephone": "string"
      },
      "location": {
        "code": "string",
        "description": "string",
        "address": {
          "buildingName": "string",
          "buildingNumber": "string",
          "streetName": "string",
          "district": "string",
          "town": "string",
          "county": "string",
          "postcode": "string"
        },
        "telephoneNumber": "string"
      },
      "description": "string",
      "outcome": {
        "code": "string",
        "description": "string"
      }
    }
  ],
  "totalElements": "integer",
  "totalPages": "integer",
  "page": "integer",
  "size": "integer"
}
ResultSetAppointment

post

Parameters

ParameterInTypeRequiredDescription
crn path string true

Responses

StatusDescriptionSchema
201

Created

/probation-cases/{nomsId}/crn

get

Parameters

ParameterInTypeRequiredDescription
nomsId path string true

Responses

StatusDescriptionSchema
200

OK

{
  "crn": "string"
}
CaseIdentifiers

/probation-cases/{crn}

get

Parameters

ParameterInTypeRequiredDescription
crn path string true

Responses

StatusDescriptionSchema
200

OK

{
  "crn": "string",
  "name": {
    "forename": "string",
    "surname": "string"
  },
  "dateOfBirth": "string",
  "contactDetails": {
    "telephone": "string",
    "mobile": "string",
    "email": "string"
  }
}
PersonDetail

/probation-cases/{crn}/mappa

get

Parameters

ParameterInTypeRequiredDescription
crn path string true

Responses

StatusDescriptionSchema
200

OK

{
  "level": "integer",
  "levelDescription": "string",
  "category": "integer",
  "categoryDescription": "string",
  "startDate": "string",
  "reviewDate": "string"
}
MappaDetail

/probation-cases/{crn}/community-manager

get

Parameters

ParameterInTypeRequiredDescription
crn path string true

Responses

StatusDescriptionSchema
200

OK

{
  "name": {
    "forename": "string",
    "surname": "string"
  },
  "unallocated": "boolean"
}
Manager

/duty-to-refer-nsi/{value}

get

Parameters

ParameterInTypeRequiredDescription
value path string true
type query string false

Available items:

  • CRN
  • NOMS

Responses

StatusDescriptionSchema
200

OK

{
  "nsiSubType": "string",
  "referralDate": "string",
  "provider": "string",
  "team": "string",
  "officer": {
    "forename": "string",
    "surname": "string",
    "middleName": "string"
  },
  "status": "string",
  "startDateTime": "string",
  "notes": "string",
  "mainAddress": {
    "buildingName": "string",
    "addressNumber": "string",
    "streetName": "string",
    "district": "string",
    "town": "string",
    "county": "string",
    "postcode": "string",
    "noFixedAbode": "boolean"
  }
}
DutyToReferNSI

Schemas

Author

NameTypeRequiredDescriptionSchema
prisonCode string true
forename string true
surname string true

CreateContact

NameTypeRequiredDescriptionSchema
type string true

Nomis contact type. Must either IMMEDIATENEEDSREPORT or PRERELEASEREPORT

description string false
dateTime string true
notes string true
author object true Author

CreateAppointment

NameTypeRequiredDescriptionSchema
type string true
start string true
duration string true

ISO-8601 representation of the duration

notes string false
uuid string true

CaseIdentifiers

NameTypeRequiredDescriptionSchema
crn string true

ContactDetails

NameTypeRequiredDescriptionSchema
telephone string false
mobile string false
email string false

Name

NameTypeRequiredDescriptionSchema
forename string true
surname string true

PersonDetail

NameTypeRequiredDescriptionSchema
crn string true
name object true Name
dateOfBirth string true
contactDetails object false ContactDetails

MappaDetail

NameTypeRequiredDescriptionSchema
level integer false
levelDescription string false
category integer false
categoryDescription string false
startDate string true
reviewDate string false

Manager

NameTypeRequiredDescriptionSchema
name object false Name
unallocated boolean true

DutyToReferNSI

NameTypeRequiredDescriptionSchema
nsiSubType string true
referralDate string true
provider string false
team string false
officer object false Officer
status string true
startDateTime string false
notes string false
mainAddress object false MainAddress

MainAddress

NameTypeRequiredDescriptionSchema
buildingName string false
addressNumber string false
streetName string false
district string false
town string false
county string false
postcode string false
noFixedAbode boolean false

Officer

NameTypeRequiredDescriptionSchema
forename string true
surname string true
middleName string false

Address

NameTypeRequiredDescriptionSchema
buildingName string false
buildingNumber string false
streetName string false
district string false
town string false
county string false
postcode string false

Appointment

NameTypeRequiredDescriptionSchema
type object true Type
dateTime string true
duration string true

ISO-8601 representation of the duration

staff object true Staff
location object false Location
description string true
outcome object false Outcome

Location

NameTypeRequiredDescriptionSchema
code string true
description string true
address object false Address
telephoneNumber string false

Outcome

NameTypeRequiredDescriptionSchema
code string true
description string true

ResultSetAppointment

NameTypeRequiredDescriptionSchema
results array true Appointment
totalElements integer true
totalPages integer true
page integer true
size integer true

Staff

NameTypeRequiredDescriptionSchema
code string true
name object true Name
email string false
telephone string false

Type

NameTypeRequiredDescriptionSchema
code string true
description string true