Clear all search history
Changed onPermanently delete every persisted search row owned by, or shared with, the authenticated user, along with the citation rows those searches reference. The action cannot be undone. Searches other users shared with the caller are deleted for their owners too, even when the caller only has read access.
Scoped to the caller's org and limited to rows where isArchived: false. The optional shared, startDate and endDate query filters narrow what is deleted; search is validated but has no effect. If nothing matches (including the case where every row is already archived), the endpoint returns 404 rather than a successful no-op.
Request
- Base URLhttps://app.pipeshub.com/api/v1
- URLhttps://app.pipeshub.com/api/v1/search
- Auth
- HTTP bearer
- or OAuth 2Authorization code: /api/v1/oauth2/authorizeClient credentialsToken URL: /api/v1/oauth2/token scopes: semantic:delete
Query parameters
Validated, then dropped: a stored search has no title to match, so it never narrows the deletion. More than 1000 characters, or HTML markup, is refused with 400.
Restrict the deletion to rows with this isShared value. 'true' / '1' and 'false' / '0', case-insensitive; anything else is refused with 400.
ISO 8601 date or date-time lower bound for createdAt. A value JavaScript's Date cannot parse is refused with 400.
ISO 8601 date or date-time upper bound for createdAt. A value JavaScript's Date cannot parse is refused with 400.
Response
Search history deleted successfully.
Changes
- breaking
added the pattern
^\d{4}-\d{2}-\d{2}to thequeryrequest parameterendDate - breaking
added the pattern
^\d{4}-\d{2}-\d{2}to thequeryrequest parameterstartDate - warning
for the
queryrequest parametersearch, the maxLength was set to1000 - info
added the new enum value
0to thequeryrequest parametershared - info
added the new enum value
1to thequeryrequest parametershared - info
for the
queryrequest parameterendDate, the format was generalized fromdate-timeto no format - info
for the
queryrequest parameterstartDate, the format was generalized fromdate-timeto no format - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- breaking