# Patron

Provider API v0.6.5 · 6 operations
Source: https://plas.redia.dk/en/provider/v0.6.5/patron/

No description in the specification.

## Get patron consents

`GET` `/patron/{patronId}/consent` · `GetPatronConsents`

This includes all the consents that are available for the patron, even if the patron has made a decision on them or not.  
This also includes all the consents the patron has made a decision on, i.e. accepted or rejected.


### Parameters

- `patronId` (In `path`, `string`, required) — Patron ID from authentication.

Shared across operations: `version`. [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

### Responses

- `200` [`PatronConsentResponseBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#PatronConsentResponseBody) — Success

Error responses: 400 · 401 · 404 — [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

## Update one or more patron consent(s)

`PATCH` `/patron/{patronId}/consent` · `UpdatePatronConsent`

Update patron consents.

Only the consents that are present in the body will be updated.  
Other consents will not be updated.

The update is an atomic operation. If one consent fails to update, all consent updates in the request will be rolled back.

All consents are returned in the response, not only the updated consents.


### Parameters

- `patronId` (In `path`, `string`, required) — Patron ID from authentication.

Shared across operations: `version`. [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

### Request body

`application/json` · required

[`UpdatePatronConsentRequestBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#UpdatePatronConsentRequestBody)

### Responses

- `200` [`UpdatePatronConsentResponseBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#UpdatePatronConsentResponseBody) — Success

Error responses: 400 · 401 · 404 — [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

## Get patron information

`GET` `/patron/{patronId}/information` · `GetPatronInformation`

Retrieve patron information

### Parameters

- `patronId` (In `path`, `string`, required) — Patron ID from authentication

Shared across operations: `version`. [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

### Responses

- `200` [`PatronInformationResponseBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#PatronInformationResponseBody) — Success

Error responses: 400 · 401 · 404 — [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

## Update patron information

`PATCH` `/patron/{patronId}/information` · `UpdatePatronInformation`

Update patron information.

Important: If a field is missing on the outermost level of the json body (like `pickupLocation`, `emails`, `phoneNumbers`, etc.), the field value is not updated in the LMS.


### Parameters

- `patronId` (In `path`, `string`, required) — Patron ID from authentication

Shared across operations: `version`. [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

### Request body

`application/json` · required

[`UpdatePatronInformationRequestBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#UpdatePatronInformationRequestBody)

### Responses

- `200` [`UpdatePatronInformationResponseBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#UpdatePatronInformationResponseBody) — Success
- `202` [`UpdatePatronInformationRequestAcceptedResponseBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#UpdatePatronInformationRequestAcceptedResponseBody) — Accepted, meaning that the request of a patron update was received, but processing will be done (or completed) later.

Error responses: 400 · 401 · 404 — [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

## Get patron notifications settings

`GET` `/patron/{patronId}/notification-settings` · `GetPatronNotificationSettings`

Retrieve the patron's notification settings

### Parameters

- `patronId` (In `path`, `string`, required) — Patron ID from authentication

Shared across operations: `version`. [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

### Responses

- `200` [`PatronNotificationSettingsResponseBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#PatronNotificationSettingsResponseBody) — Success

Error responses: 400 · 401 · 404 — [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

## Update one or more patron notification settings

`PATCH` `/patron/{patronId}/notification-settings` · `UpdatePatronNotificationSettings`

Update patron notification settings.

Only the notification settings that are present in the body will be updated.  
Other notification settings will not be updated.

The update is an atomic operation. If one notification setting fails to update, all notification settings updates in the request will be rolled back.

All notification settings are returned in the response, not only the updated notification settings.


### Parameters

- `patronId` (In `path`, `string`, required) — Patron ID from authentication

Shared across operations: `version`. [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)

### Request body

`application/json` · required

[`UpdatePatronNotificationSettingsRequestBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#UpdatePatronNotificationSettingsRequestBody)

### Responses

- `200` [`UpdatePatronNotificationSettingsResponseBody`](https://plas.redia.dk/en/provider/v0.6.5/schemas/#UpdatePatronNotificationSettingsResponseBody) — Success

Error responses: 400 · 401 · 404 — [See the shared contract on the version page.](https://plas.redia.dk/en/provider/v0.6.5/)
