Other
Rate a finished run
Rate a finished run
A thumb (scale: thumb, rating 1 or -1, the default) or one to five stars (scale: five; 4–5 count as up, 1–2 as down, 3 on no side), with an optional comment, on a run you made or whose agent you can read. One rating per run and rater: a second call changes it, rating: 0 takes it back. The rater is your account (api:<you>), or your customer with on_behalf_of (api:<you>:<id>). Ratings count in the agent’s numbers for the run’s day and version and show on the console’s Agents › Feedback.
Not yet described in the overlay (TI-20).
Authorizations
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)Path parameters
exec-…)Query parameters
Available options: json, yaml, markdown, text
Body
application/jsontext/yaml
Required range: -1 <= x <= 5
Available options: thumb, five
Default: thumb
Maximum string length: 2000
Minimum string length: 1 Maximum string length: 128
Available options: json, yaml, markdown, text
Response
Your rating was taken back (rating: 0) Response format negotiates via the format field, an Accept header (application/json, text/yaml, text/markdown, text/plain), or the request Content-Type mirror; default JSON.
application/jsontext/yamltext/markdowntext/plain
The rating as stored Response format negotiates via the format field, an Accept header (application/json, text/yaml, text/markdown, text/plain), or the request Content-Type mirror; default JSON.
application/jsontext/yamltext/markdowntext/plain
invalid_feedback — rating must be 1 or -1 for thumb, 1 to 5 for five; comment at most 2000 characters; invalid_on_behalf_of — not a valid customer id; invalid_format / invalid_json / invalid_yaml — unreadable body or unknown format
application/json
unauthorized — missing, invalid or revoked ozk_ key
application/json
execution_not_found — no execution with that id for this key (a foreign id answers the same); not_found — no route for this method on this path: every other method answers it
application/json
execution_running — the run has not finished; rate it once it has
application/json
upstream_error — a store failed; no detail is returned, retry shortly
application/json