From e97ed7ba1306cba0e43a008465d68de695d96960 Mon Sep 17 00:00:00 2001 From: Bram Pauwelyn Date: Thu, 7 Mar 2024 14:14:19 +0100 Subject: [PATCH] III-6019 - Add editSavedSearch to udb-api service --- src/core/udb-api.service.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/udb-api.service.js b/src/core/udb-api.service.js index 5e081e2fd..5a419352e 100644 --- a/src/core/udb-api.service.js +++ b/src/core/udb-api.service.js @@ -134,6 +134,12 @@ function UdbApi( .then(returnUnwrappedData); }; + this.editSavedSearch = function (searchId, name, query) { + return $http + .put(appConfig.baseUrl + 'saved-searches/v3/' + searchId, {name: name, query: query}, defaultApiConfig) + .then(returnUnwrappedData); + } + /** * @param {string} queryString - The query used to find offers. * @param {number} [start] - From which offset the result set should start.