Cross-entity workspace search
Changed onBearer atc:read (or cookie session). Searches ATCs, Tests, Projects, Modules, Bugs and Runs inside ONE workspace and returns up to 5 matches per entity type, each with a ready-to-navigate href.
There is deliberately no workspace path segment and no workspace query parameter — the caller is never the authority on scope. A cookie session is scoped to its active workspace (the bk_active_ws cookie, falling back to the caller's oldest workspace); a Bearer PAT is scoped to the workspace it was issued against.
Scope failures never disclose existence: an unknown, foreign or inaccessible workspace and a query with no matches all return the same 200 { "data": [], "truncated": false }. This route answers no 403 or 404 for scope reasons.
Request
- Base URL: http://localhost:3000
- URL: http://localhost:3000/api/v1/search
- Auth: one of:
- API key in cookie sb-fmbpikzpkafptqximhxn-auth-token
- HTTP bearer
Query parameters
Required. Free-text query, trimmed server-side; it must be at least 2 characters AFTER trimming, so " a " fails with 422. The client is expected never to send a shorter query in the first place — this is a defensive backstop.
1..20, default 20. A per-request ceiling only: the underlying RPC independently caps each entity group at 5 rows, so raising limit never returns more than 5 of any one type.
Response
Matches, grouped-capped and possibly empty.
Changes
- warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status
- warning
- info
removed the
test_outside_plan_projectenum value from the/response property for the response status - info
removed the
test_outside_plan_projectenum value from the/response property for the response status - info
removed the
test_outside_plan_projectenum value from the/response property for the response status
- info