Retrieve fresh output from the original Video task
Generated from the checked-in source. Do not edit this reference by hand.
POST /api/v1/workspaces/{workspace}/tasks/{task}/results/{kind}/refresh
Explicit workspace Write action. Derives the original inference key and immutable Provider/account/model/channel binding from the actor-visible saved task; clients cannot choose replacements. Current original key grants and source policy remain required; revoked or expired keys never regain action authority through history. No generation, automatic retry or composer configuration is used. Rechecks actor visibility and grants after upstream work. Saved GET, cached artifact content, upstream refresh and fresh delivery remain distinct. Queries the original task once, then performs bounded authorized binary retrieval. Does not rewrite expired/deleted cached references. A fresh URL does not prove durable media availability; missing result404, Provider gone/unavailable502 and timeout504 remain explicit. The server resolves the organization from the authorized workspace. Foreign or missing workspaces return 404. The compatibility route remains supported with identical payload, owner, revision and replay semantics.
Operation: retrieveFreshGenerationsTaskResultByWorkspace.
Authentication
Section titled “Authentication”Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.
[ { "bearerAuth": [] }]HTTP request
Section titled “HTTP request”Set NIU_ORIGIN to your installation origin (without /v1). Replace path, query and header placeholders with the required values. Query examples use curl 7.87 or newer to encode values with --url-query. Use the credential scope described above; a bearer token must have the authority required by this operation.
curl --fail-with-body -X POST "$NIU_ORIGIN/api/v1/workspaces/{workspace}/tasks/{task}/results/{kind}/refresh" \ -H "Authorization: Bearer $NIU_BEARER_TOKEN"Parameters
Section titled “Parameters”workspace
Section titled “workspace”Location: path. Required.
{ "type": "string", "format": "uuid"}Location: path. Required.
{ "type": "string", "format": "uuid"}Location: path. Required.
{ "type": "string", "enum": [ "video", "last_frame" ]}Request body
Section titled “Request body”No request body is declared.
Responses
Section titled “Responses”HTTP 200
Section titled “HTTP 200”Bounded media bytes
Content type: video/mp4.
{ "type": "string", "format": "binary"}Content type: video/webm.
{ "type": "string", "format": "binary"}Content type: image/png.
{ "type": "string", "format": "binary"}Content type: image/jpeg.
{ "type": "string", "format": "binary"}HTTP 400
Section titled “HTTP 400”Invalid kind or request
HTTP 401
Section titled “HTTP 401”Sign-in required
HTTP 403
Section titled “HTTP 403”Workspace Write or original-key permission denied
HTTP 404
Section titled “HTTP 404”Task missing, actor-private, or original key no longer available
HTTP 409
Section titled “HTTP 409”Original Provider binding changed or query already claimed
HTTP 502
Section titled “HTTP 502”Upstream query or result delivery failed
HTTP 503
Section titled “HTTP 503”Storage or bounded delivery unavailable
HTTP 504
Section titled “HTTP 504”Upstream query or delivery timed out
Behavior and supported scope
Section titled “Behavior and supported scope”Explicit workspace Write action. Derives the original inference key and immutable Provider/account/model/channel binding from the actor-visible saved task; clients cannot choose replacements. Current original key grants and source policy remain required; revoked or expired keys never regain action authority through history. No generation, automatic retry or composer configuration is used. Rechecks actor visibility and grants after upstream work. Saved GET, cached artifact content, upstream refresh and fresh delivery remain distinct. Queries the original task once, then performs bounded authorized binary retrieval. Does not rewrite expired/deleted cached references. A fresh URL does not prove durable media availability; missing result404, Provider gone/unavailable502 and timeout504 remain explicit. The server resolves the organization from the authorized workspace. Foreign or missing workspaces return 404. The compatibility route remains supported with identical payload, owner, revision and replay semantics.
Supported scope: implemented