# Patron

Provider API v0.6.5 · 6 operationer
Kilde: https://plas.redia.dk/provider/v0.6.5/patron/

Ingen beskrivelse i specifikationen.

## 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.


### Parametre

- `patronId` (i `path`, `string`, påkrævet) — Patron ID from authentication.

Fælles for operationerne: `version`. [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)

### Svar

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

Fejlsvar: 400 · 401 · 404 — [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/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.


### Parametre

- `patronId` (i `path`, `string`, påkrævet) — Patron ID from authentication.

Fælles for operationerne: `version`. [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)

### Request body

`application/json` · påkrævet

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

### Svar

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

Fejlsvar: 400 · 401 · 404 — [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)

## Get patron information

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

Retrieve patron information

### Parametre

- `patronId` (i `path`, `string`, påkrævet) — Patron ID from authentication

Fælles for operationerne: `version`. [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)

### Svar

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

Fejlsvar: 400 · 401 · 404 — [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/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.


### Parametre

- `patronId` (i `path`, `string`, påkrævet) — Patron ID from authentication

Fælles for operationerne: `version`. [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)

### Request body

`application/json` · påkrævet

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

### Svar

- `200` [`UpdatePatronInformationResponseBody`](https://plas.redia.dk/provider/v0.6.5/schemas/#UpdatePatronInformationResponseBody) — Success
- `202` [`UpdatePatronInformationRequestAcceptedResponseBody`](https://plas.redia.dk/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.

Fejlsvar: 400 · 401 · 404 — [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)

## Get patron notifications settings

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

Retrieve the patron's notification settings

### Parametre

- `patronId` (i `path`, `string`, påkrævet) — Patron ID from authentication

Fælles for operationerne: `version`. [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)

### Svar

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

Fejlsvar: 400 · 401 · 404 — [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/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.


### Parametre

- `patronId` (i `path`, `string`, påkrævet) — Patron ID from authentication

Fælles for operationerne: `version`. [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)

### Request body

`application/json` · påkrævet

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

### Svar

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

Fejlsvar: 400 · 401 · 404 — [Se den fælles kontrakt på versionssiden.](https://plas.redia.dk/provider/v0.6.5/)
