Martin Ericsson, Kungliga biblioteket
Lari Kovanen, Chalmers tekniska högskola
Vilken information är obligatorisk
Bra att ha information
Posta till /authn/login-with-expiry
där headern innehåller vilken tenant som avses i X-OKAPI-TENANT som
{
"username":"användarnamn",
"password":"lösenord"
}
Två cookies med token returneras.
set-cookie: folioAccessToken=xxx; Max-Age=600; Expires=Mon, 18 May 2026 16:07:35 GMT;
Path=/; Secure; HTTPOnly; SameSite=None
set-cookie: folioRefreshToken=yyy; Max-Age=604800; Expires=Mon, 25 May 2026 15:57:35 GMT;
Path=/authn; Secure; HTTPOnly; SameSite=None
och bodyn består av json med expire-tiderna upprepad.
{
"accessTokenExpiration":"2026-05-18T16:07:35Z",
"refreshTokenExpiration":"2026-05-25T15:57:35Z"
}
GET /groups
{
"usergroups": [
{
"group": "faculty",
"desc": "Faculty Member",
"id": "503a81cd-6c26-400f-b620-14c08943697c",
"expirationOffsetInDays": 365,
"metadata": {
"createdDate": "2026-05-19T01:51:33.022+00:00",
"updatedDate": "2026-05-19T01:51:33.022+00:00"
}
},
......
POST /users
{
"username": "string",
"externalSystemId": "string",
"active": true,
"personal": {
"firstName": "string",
"lastName": "string",
"email": "string",
"preferredContactTypeId": "002"
},
"barcode":"string",
"patronGroup":"GUID"
}
Post till /perms/users
{
"userId": "GUID",
"permissions": []
}
Post till /request-preference-storage/request-preference
{
"userId": "GUID",
"holdShelf": true,
"delivery": false
}
Post till /manualblocks
{
"userId": "GUID",
"type": "Manual",
"desc": "Nyskapat konto. ID-koll!!",
"staffInformation": "Info som personal behöver.",
"patronMessage": "Eventuell info till användaren. Visa ID.",
"borrowing": true,
"renewals": false,
"requests": false
}
Post till /patron-pin med header Accept: text/plain
{
"id": "GUID",
"pin": "pin/lösenord"
}
GET /bl-users/by-id/{Användar id}/open-transactions
{
"userId": "Användar id",
"hasOpenTransactions": false,
"loans": 0,
"requests": 0,
"feesFines": 0,
"proxies": 0,
"blocks": 0
}
DELETE /bl-users/by-id/{användar id}
Returnerar Status 204 om den lyckades.




| Slides | Repo |
|---|---|
![]() |
![]() |
https://folio-sweden.github.io/utv-preso-2026/ |
https://github.com/Folio-Sweden/utv-preso-2026 |