This web service deletes one of the saved searches that was previously added to user's library.
Method |
Endpoint |
DELETE |
/api/users/{userId}/searches/{searchId} |
Path parameter |
Type |
Description |
{userId} |
String |
The user's identifier. |
{bookmarkId} |
String |
The bookmark's identifier as retrieved when listing all searches. |
Return code |
Description |
204 NO CONTENT |
The saved search was deleted. |
400 BAD REQUEST |
A required parameter is missing or an invalid color was provided for the saved search's tag. |
401 UNAUTHORIZED |
The authorization header is absent or invalid. |
403 FORBIDDEN |
The user or API key does not have the USERS_ADMIN or ADMIN role, or the user corresponding to the USER_ID parameter does not have the SAVED_SEARCH_USER role. |
404 NOT FOUND |
No user exists with this identifier. |
For a comprehensive list of all possible return codes, see Return codes.