Skip to content

Find older postings for a run

POST
/api/runs/{run_id}/posted-window
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.

run_id
required
string

A run id from GET /api/runs (run_…).

Media typeapplication/json
object
days

Search this many days back (1 to 365); omitted = read what was searched.

integer
Example
{
"days": 30
}

Success.

Media typeapplication/json
object
key
additional properties
any
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).

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Examplegenerated
{
"error": {
"allowed_keys": [
"example"
],
"code": "example",
"message": "example"
}
}

Not_found

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Example
{
"error": {
"code": "not_found",
"message": "..."
}
}

Unsupported_media_type: writes need Content-Type: application/json.

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Examplegenerated
{
"error": {
"allowed_keys": [
"example"
],
"code": "example",
"message": "example"
}
}

Invalid_value, wrong_type, unknown_key

Media typeapplication/json
object
error
required
object
allowed_keys
Array<string>
code
required
string
message
required
string
key
additional properties
any
Example
{
"error": {
"code": "invalid_value",
"message": "..."
}
}