Skip to main content
API Reference

The following documentation is also available in these formats:

API Reference v1.0

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

get

Parameters

ParameterInTypeRequiredDescription
nomsId path string true

Responses

StatusDescriptionSchema
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

ParameterInTypeRequiredDescription
nomisId path string true

Responses

StatusDescriptionSchema
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

ParameterInTypeRequiredDescription
id path string true

Responses

StatusDescriptionSchema
200

OK

{
}
StreamingResponseBody

Schemas

Manager

NameTypeRequiredDescriptionSchema
code string true
name object true Name
team object true Team
email string false
telephone string false
unallocated boolean true

Name

NameTypeRequiredDescriptionSchema
forename string true
surname string true

Team

NameTypeRequiredDescriptionSchema
code string true
description string true
email string false
telephone string false

Conviction

NameTypeRequiredDescriptionSchema
title string false
offence string true
date string true
active boolean true
documents array true Document
institutionName string false

Document

NameTypeRequiredDescriptionSchema
id string true
name string true
description string false
type string true
author string false
createdAt string false

ProbationDocumentsResponse

NameTypeRequiredDescriptionSchema
crn string true
name object true Name
documents array true Document
convictions array true Conviction

StreamingResponseBody