Archive a search
Changed onArchive a specific search result. Archived searches are hidden from the search history and from GET /search/{searchId}, and cannot be shared, unshared or deleted until they are unarchived.
The caller must own the search or have it shared with them: a user the search was shared with, even with read access only, can archive the owner's search for everyone.
Request
- Base URLhttps://app.pipeshub.com/api/v1
- URLhttps://app.pipeshub.com/api/v1/search/{searchId}/archive
- Auth
- HTTP bearer
- or OAuth 2Authorization code: /api/v1/oauth2/authorizeClient credentialsToken URL: /api/v1/oauth2/token scopes: semantic:write
Path parameters
Unique search identifier
Query parameters
Validated, then dropped: a stored search has no title to match, so the search is archived whatever this says. More than 1000 characters, or HTML markup, is refused with 400.
Additional isShared filter. 'true' / '1' and 'false' / '0', case-insensitive; anything else is refused with 400. The search is only archived if it matches, otherwise 404.
ISO 8601 date or date-time lower bound for createdAt. The search is only archived if it was created on or after it, otherwise 404. A value JavaScript's Date cannot parse is refused with 400.
ISO 8601 date or date-time upper bound for createdAt. The search is only archived if it was created on or before it, otherwise 404. A value JavaScript's Date cannot parse is refused with 400.
Response
Search archived successfully
Example response
{
"id": "65f1c0a4e2b9c4d8f3a1b2c3",
"status": "archived",
"archivedBy": "65f1c0a4e2b9c4d8f3a1b2c4",
"archivedAt": "2026-05-10T12:34:56.789Z",
"meta": {
"requestId": "req_8f3a1b2c",
"timestamp": "2026-05-10T12:34:56.789Z",
"duration": 42
}
}Changes
- info
added the new optional
queryrequest parameterendDate - info
added the new optional
queryrequest parametersearch - info
added the new optional
queryrequest parametershared - info
added the new optional
queryrequest parameterstartDate - 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
- info