API endpoints

SS01 | Store search

POST

/savedsearches

User permission required

Remarks

Request payload

{
    "title": "Goethe",
    "type": "newspaper",
    "searchQuery": "aHR0cHM6Ly93aWtpLmRldXRzY2hlLWRpZ2l0YWxlLWJpYmxpb3RoZWsuZGUv"
}

Response payload

{
    "id": 251,
    "userId": "fachstelle_museum",
    "title": "Goethe",
    "type": "newspaper",
    "searchQuery": "aHR0cHM6Ly93aWtpLmRldXRzY2hlLWRpZ2l0YWxlLWJpYmxpb3RoZWsuZGUv",
    "createdAt": "2025-04-11T10:25:35.310+00:00"
}

Status codes

Example call(s)

^ Back to top


SS02 | Retrieves searches

GET

/savedsearches

User permission required

Remarks

Query parameters

NameValueOccurenceDefaultRequired
titleTitle of searchOnce-Optional
queryStringBase 64 coded search stringOnce-Optional
typeType of search like item, entity, institution or newspaperOnce-Optional

Response payload

[
    {
        "id": 1,
        "userId": "fachstelle_museum",
        "title": "Goethe 1",
        "type": "newspaper",
        "queryString": "aHR0cHM6Ly93aWtpLmRldXRzY2hlLWRpZ2l0YWxlLWJpYmxpb3RoZWsuZGUv",
        "createdAt": "2025-04-18T10:56:08.916+00:00"
    },{
        "id": 2,
        "userId": "fachstelle_museum",
        "title": "Goethe 2",
        "type": "newspaper",
        "queryString": "bHR0cHM6Ly93aWtpLmRldXRzY2hlLWRpZ2l0YWxlLWJpYmxpb3RoZWsuZGUv",
        "createdAt": "2025-04-18T10:57:08.916+00:00"
    } 
]

Status codes

Example call(s)

^ Back to top


SS03 | Update search

PUT

/savedsearches/{id}

User permission required

Remarks

Request payload

This is the Payload when every possible property should updated. Unchanged properties could be omitted.

{
    "title": "Goethe",
    "type": "newspaper",
    "searchQuery": "aHR0cHM6Ly93aWtpLmRldXRzY2hlLWRpZ2l0YWxlLWJpYmxpb3RoZWsuZGUv"
}

Status codes

Example call(s)

^ Back to top


SS04 | Delete search

DELETE

/savedsearches/{id}

User permission required

Status codes

Example call(s)

^ Back to top


Model

SavedSearch

Fields

FieldData typeDescription

id

Long

ID of the Saved Search (internal created by PostgreSQL)

title

String

User defined title of the Saved Search

type

String

Type of the Saved Search (CULTURAL_ITEM | INSTITUTION | ENTITY | NEWSPAPER(legacy))

queryString

String

Search query string with parameters filtered and sorted alphabetically. Encoded in Base64

userId

String

AAS/LDAP managed ID of the User

createdAt

XMLGregorianCalendar

Creation date of the Saved Search created by the DDB Backend

Description

^ Back to top