Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

Retrieve fresh output from the original Video task

Generated from the checked-in source. Do not edit this reference by hand.

POST /v1/video/jobs/{id}/results/{kind}/refresh

Explicitly queries the original upstream video task once using the immutable original Provider/account/model/channel binding and delivers bounded media bytes without rewriting cached references. Requires a current workspace API key or a workspace session with X-Niu-Key-Id and Write permission.

Operation: retrieveFreshVideoResult.

Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.

JSON
[
{
"bearerAuth": []
},
{
"niuApiKeyAuth": []
}
]

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.

Authentication alternative: bearerAuth.

Shell
curl --fail-with-body -X POST "$NIU_ORIGIN/v1/video/jobs/{id}/results/{kind}/refresh" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN"

Authentication alternative: niuApiKeyAuth.

Shell
curl --fail-with-body -X POST "$NIU_ORIGIN/v1/video/jobs/{id}/results/{kind}/refresh" \
-H "X-Niu-API-Key: $NIU_API_KEY"

Location: path. Required.

JSON
{
"type": "string",
"format": "uuid"
}

Location: path. Required.

JSON
{
"type": "string",
"enum": [
"video",
"last_frame"
]
}

No request body is declared.

Bounded media bytes

Content type: video/mp4.

JSON
{
"type": "string",
"format": "binary"
}

Content type: video/webm.

JSON
{
"type": "string",
"format": "binary"
}

Content type: image/png.

JSON
{
"type": "string",
"format": "binary"
}

Content type: image/jpeg.

JSON
{
"type": "string",
"format": "binary"
}

Invalid kind or request

Invalid, expired or revoked credential

Permission or guardrail policy denied

Task or requested result missing

Original Provider binding changed or query already claimed

Upstream query or result delivery failed

Storage or bounded delivery unavailable

Upstream query or delivery timed out

Explicitly queries the original upstream video task once using the immutable original Provider/account/model/channel binding and delivers bounded media bytes without rewriting cached references. Requires a current workspace API key or a workspace session with X-Niu-Key-Id and Write permission.

Supported scope: implemented