POST | /savedsearches |
---|
User permission required
{ "title": "Goethe", "type": "newspaper", "searchQuery": "aHR0cHM6Ly93aWtpLmRldXRzY2hlLWRpZ2l0YWxlLWJpYmxpb3RoZWsuZGUv" } |
{ "id": 251, "userId": "fachstelle_museum", "title": "Goethe", "type": "newspaper", "searchQuery": "aHR0cHM6Ly93aWtpLmRldXRzY2hlLWRpZ2l0YWxlLWJpYmxpb3RoZWsuZGUv", "createdAt": "2025-04-11T10:25:35.310+00:00" } |
GET | /savedsearches |
---|
User permission required
Name | Value | Occurence | Default | Required |
---|---|---|---|---|
title | Title of search | Once | - | Optional |
queryString | Base 64 coded search string | Once | - | Optional |
type | Type of search like item, entity, institution or newspaper | Once | - | Optional |
[ { "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" } ] |
PUT | /savedsearches/{id} |
---|
User permission required
This is the Payload when every possible property should updated. Unchanged properties could be omitted.
{ "title": "Goethe", "type": "newspaper", "searchQuery": "aHR0cHM6Ly93aWtpLmRldXRzY2hlLWRpZ2l0YWxlLWJpYmxpb3RoZWsuZGUv" } |
DELETE | /savedsearches/{id} |
---|
User permission required
Field | Data type | Description |
---|---|---|
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 |