Skip to main content
API Reference

The following documentation is also available in these formats:

API Reference v1.0

/user/{username}/password

post

Change a Delius user’s password. Requires PROBATION_API__HMPPS_AUTH__PASSWORD__RW.

Parameters

ParameterInTypeRequiredDescription
username path string true

Responses

StatusDescriptionSchema
200

Password changed successfully

404

User not found

/authenticate

post

Authenticate a Delius username and password. Requires PROBATION_API__HMPPS_AUTH__AUTHENTICATE.

Responses

StatusDescriptionSchema
200

User authenticated

401

Authentication failure

403

Client role required: DELIUS_USER_AUTH

/user

get

Get users by email. Requires PROBATION_API__HMPPS_AUTH__USER_DETAILS.

Parameters

ParameterInTypeRequiredDescription
email query string true

Responses

StatusDescriptionSchema
200

OK

{
}

/user/{username}

get

Get user details. Requires PROBATION_API__HMPPS_AUTH__USER_DETAILS.

Parameters

ParameterInTypeRequiredDescription
username path string true

Responses

StatusDescriptionSchema
200

OK

{
  "userId": "integer",
  "username": "string",
  "firstName": "string",
  "surname": "string",
  "email": "string",
  "enabled": "boolean",
  "roles": [
    {
    }
  ]
}
UserDetails

/user/details/{userId}

get

Get user details by Id. Requires PROBATION_API__HMPPS_AUTH__USER_DETAILS.

Parameters

ParameterInTypeRequiredDescription
userId path integer true

Responses

StatusDescriptionSchema
200

OK

{
  "userId": "integer",
  "username": "string",
  "firstName": "string",
  "surname": "string",
  "email": "string",
  "enabled": "boolean",
  "roles": [
    {
    }
  ]
}
UserDetails

Schemas

PasswordChangeRequest

NameTypeRequiredDescriptionSchema
password string true

AuthenticationRequest

NameTypeRequiredDescriptionSchema
username string true
password string true

UserDetails

NameTypeRequiredDescriptionSchema
userId integer true
username string true
firstName string true
surname string true
email string false
enabled boolean true
roles array true