Get search by ID
Changed onRetrieve a previously persisted search by its id, scoped to the caller's org. The caller must own the search or have it shared with them; archived searches are not returned.
The response body is always an array containing zero or one persisted search document. An unknown id, a search the caller cannot see, an archived search, or one that fails a query filter all return an empty array with a 200 status — this route never answers 404, so callers should check the array length.
The optional shared, startDate and endDate query filters are applied to the one search; search is validated but has no effect.
Request
- Base URLhttps://app.pipeshub.com/api/v1
- URLhttps://app.pipeshub.com/api/v1/search/{searchId}
- Auth
- HTTP bearer
- or OAuth 2Authorization code: /api/v1/oauth2/authorizeClient credentialsToken URL: /api/v1/oauth2/token scopes: semantic:read
Path parameters
Unique search identifier
Query parameters
Validated, then dropped: a stored search has no title to match, so it never filters anything. More than 1000 characters, or HTML markup, is refused with 400.
Return the search only if its isShared matches. 'true' / '1' and 'false' / '0', case-insensitive; anything else is refused with 400.
ISO 8601 date or date-time; return the search only if it was created on or after it. A value JavaScript's Date cannot parse is refused with 400.
ISO 8601 date or date-time; return the search only if it was created on or before it. A value JavaScript's Date cannot parse is refused with 400.
Response
Array containing zero or one persisted search document.
Changes
- breaking
the
//response's property type changed fromobjectto no type for status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - breaking
removed the required property
///from the response with the status - 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
removed the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
///to the response with the status - info
added to the
//response propertyanyOflist for the response status - info
removed the
HTTP_FORBIDDENenum value from the/response property for the response status - info
removed the
HTTP_INTERNAL_SERVER_ERRORenum value from the/response property for the response status - info
removed the
HTTP_UNAUTHORIZEDenum value from the/response property for the response status - info
removed the
INTERNAL_ERRORenum value from the/response property for the response status - info
removed the
MIDDLEWARE_ERRORenum value from the/response property for the response status - info
removed the
VALIDATION_ERRORenum value from the/response property for the response status
- breaking
- info
added the optional property
////to the response with the status - info
added the optional property
////to the response with the status
- info