Skip to main content
API Reference

The following documentation is also available in these formats:

API Reference v1.0

/users/{username}/roles/{role}

put

Parameters

ParameterInTypeRequiredDescription
username path string true
role path string true

Available items:

  • LHDCBT002
  • LHDCBT003

Responses

StatusDescriptionSchema
200

OK

delete

Parameters

ParameterInTypeRequiredDescription
username path string true
role path string true

Available items:

  • LHDCBT002
  • LHDCBT003

Responses

StatusDescriptionSchema
200

OK

/users/{username}/details

get

Parameters

ParameterInTypeRequiredDescription
username path string true

Responses

StatusDescriptionSchema
200

OK

{
  "username": "string",
  "enabled": "boolean",
  "roles": [
    {
    }
  ]
}
UserDetails

/staff

get

Parameters

ParameterInTypeRequiredDescription
username query string true
id query integer true

Responses

StatusDescriptionSchema
200

OK

{
  "code": "string",
  "staffId": "integer",
  "name": {
    "forenames": "string",
    "surname": "string"
  },
  "teams": [
    {
      "code": "string",
      "description": "string",
      "telephone": "string",
      "emailAddress": "string",
      "probationDeliveryUnit": {
        "code": "string",
        "description": "string"
      },
      "localAdminUnit": {
        "code": "string",
        "description": "string"
      }
    }
  ],
  "username": "string",
  "email": "string"
}
Staff

/staff/{code}

get

Parameters

ParameterInTypeRequiredDescription
code path string true

Responses

StatusDescriptionSchema
200

OK

{
  "code": "string",
  "staffId": "integer",
  "name": {
    "forenames": "string",
    "surname": "string"
  },
  "teams": [
    {
      "code": "string",
      "description": "string",
      "telephone": "string",
      "emailAddress": "string",
      "probationDeliveryUnit": {
        "code": "string",
        "description": "string"
      },
      "localAdminUnit": {
        "code": "string",
        "description": "string"
      }
    }
  ],
  "username": "string",
  "email": "string"
}
Staff

/staff/{code}/managedPrisonerIds

get

Parameters

ParameterInTypeRequiredDescription
code path string true

Responses

StatusDescriptionSchema
200

OK

{
}

/providers

get

Responses

StatusDescriptionSchema
200

OK

{
}

/providers/{providerCode}/localAdminUnits/{lauCode}

get

Parameters

ParameterInTypeRequiredDescription
providerCode path string true
lauCode path string true

Responses

StatusDescriptionSchema
200

OK

{
  "code": "string",
  "description": "string",
  "teams": [
    {
      "code": "string",
      "description": "string"
    }
  ]
}
LocalAdminUnitWithTeams

/providers/{code}

get

Parameters

ParameterInTypeRequiredDescription
code path string true

Responses

StatusDescriptionSchema
200

OK

{
  "code": "string",
  "description": "string",
  "localAdminUnits": [
    {
      "code": "string",
      "description": "string"
    }
  ]
}
ProviderWithLaus

/managedPrisonerIds

get

Parameters

ParameterInTypeRequiredDescription
staffId query integer true

Responses

StatusDescriptionSchema
200

OK

{
}

/case/{nomsNumber}/communityManager

get

Parameters

ParameterInTypeRequiredDescription
nomsNumber path string true

Responses

StatusDescriptionSchema
200

OK

{
  "code": "string",
  "staffId": "integer",
  "name": {
    "forenames": "string",
    "surname": "string"
  },
  "team": {
    "code": "string",
    "description": "string"
  },
  "localAdminUnit": {
    "code": "string",
    "description": "string"
  },
  "provider": {
    "code": "string",
    "description": "string"
  },
  "isUnallocated": "boolean"
}
CommunityManager

Schemas

UserDetails

NameTypeRequiredDescriptionSchema
username string true
enabled boolean true
roles array true

LocalAdminUnit

NameTypeRequiredDescriptionSchema
code string true
description string true

Name

NameTypeRequiredDescriptionSchema
forenames string true
surname string true

ProbationDeliveryUnit

NameTypeRequiredDescriptionSchema
code string true
description string true

Staff

NameTypeRequiredDescriptionSchema
code string true
staffId integer true
name object true Name
teams array true TeamDetails
username string false
email string false

TeamDetails

NameTypeRequiredDescriptionSchema
code string true
description string true
telephone string false
emailAddress string false
probationDeliveryUnit object true ProbationDeliveryUnit
localAdminUnit object true LocalAdminUnit

Provider

NameTypeRequiredDescriptionSchema
code string true
description string true

LocalAdminUnitWithTeams

NameTypeRequiredDescriptionSchema
code string true
description string true
teams array true Team

Team

NameTypeRequiredDescriptionSchema
code string true
description string true

ProviderWithLaus

NameTypeRequiredDescriptionSchema
code string true
description string true
localAdminUnits array true LocalAdminUnit

CommunityManager

NameTypeRequiredDescriptionSchema
code string true
staffId integer true
name object true Name
team object true Team
localAdminUnit object true LocalAdminUnit
provider object true Provider
isUnallocated boolean true