Find older postings for a run
const url = 'http://127.0.0.1:8765/api/runs/example/posted-window';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"days":30}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:8765/api/runs/example/posted-window \ --header 'Content-Type: application/json' \ --data '{ "days": 30 }'Search the stored boards for postings of the last N days a finished run does not hold, and add them to it (read / search). No board is downloaded: the search reads the company index and board cache on this machine. No run is created. Only the added postings are ranked and assessed (at most the run’s assess cap, and never more than the newest 50 at a time); existing assessments and answers are untouched.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A run id from GET /api/runs (run_…).
Request Body
Section titled “Request Body”object
Search this many days back (1 to 365); omitted = read what was searched.
Example
{ "days": 30}Responses
Section titled “Responses”Success.
object
Example
{ "added_total": 4, "choices": [ 7, 10, 30, 60 ], "run_days": 10, "run_id": "run_1", "searched_days": 30, "skip_reason": null}Forbidden / forbidden_origin: loopback peer and Host 127.0.0.1:<port> or localhost:<port> only (Origin too on writes).
object
object
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Not_found
object
object
Example
{ "error": { "code": "not_found", "message": "..." }}Unsupported_media_type: writes need Content-Type: application/json.
object
object
Examplegenerated
{ "error": { "allowed_keys": [ "example" ], "code": "example", "message": "example" }}Invalid_value, wrong_type, unknown_key
object
object
Example
{ "error": { "code": "invalid_value", "message": "..." }}