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

Publish an evidenced route media liability bound

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

POST /api/v1/providers/{supplier}/offers/{offer}/media-liability-bounds

Explicit platform administration only. Ordinary customer and Provider memberships do not grant access. Liability qualifications are finite, immutable maximum billed quantities tied to exact currently approved Provider offer, credential/model/schema revisions, dimensions and meter; they contain no purchase or selling price and must be supported by explicit evidence. Video output estimates are not liability evidence. Publication alone does not authorize dispatch. UUIDs are API references, never display labels. Exact epoch times and versions are decimal integer strings. Identical idempotent retries preserve the original result; changed intent or stale versions conflict. Revocation affects future admission, never rewrites already pinned jobs. Reads use no-store.

Operation: publishMediaLiabilityQualification.

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

JSON
[
{
"bearerAuth": []
}
]

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.

Shell
curl --fail-with-body -X POST "$NIU_ORIGIN/api/v1/providers/{supplier}/offers/{offer}/media-liability-bounds" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN" \
-H 'Content-Type: application/json' \
--data @request.json

Location: path. Required.

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

Location: path. Required.

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

Required.

JSON
{
"type": "object",
"additionalProperties": false,
"properties": {
"identity": {
"type": "object",
"additionalProperties": false,
"properties": {
"supplier_id": {
"type": "string",
"format": "uuid"
},
"offer_id": {
"type": "string",
"format": "uuid"
},
"offer_revision": {
"type": "string",
"format": "uuid"
},
"vendor_id": {
"type": "string",
"format": "uuid"
},
"vendor_revision": {
"type": "string",
"pattern": "^[0-9]+$"
},
"model_alias": {
"type": "string"
},
"model_revision": {
"type": "string",
"pattern": "^[0-9]+$"
},
"schema_revision": {
"type": "string"
},
"dimensions": {
"type": "object",
"additionalProperties": false,
"properties": {
"model": {
"type": "string"
},
"channel": {
"type": "string"
},
"resolution": {
"type": "string"
},
"reference_video": {
"type": "boolean"
}
},
"required": [
"model",
"channel",
"resolution",
"reference_video"
]
},
"meter": {
"type": "string"
}
},
"required": [
"supplier_id",
"offer_id",
"offer_revision",
"vendor_id",
"vendor_revision",
"model_alias",
"model_revision",
"schema_revision",
"dimensions",
"meter"
]
},
"maximum_quantity": {
"type": "object",
"additionalProperties": false,
"properties": {
"numerator": {
"type": "string",
"pattern": "^[0-9]+$"
},
"denominator": {
"type": "string",
"pattern": "^[0-9]+$"
}
},
"required": [
"numerator",
"denominator"
]
},
"evidence_revision": {
"type": "string"
},
"evidence_sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"effective_from": {
"type": "string",
"pattern": "^[0-9]+$"
},
"effective_until": {
"type": "string",
"pattern": "^[0-9]+$"
},
"expected_version": {
"type": "string",
"pattern": "^[0-9]+$"
},
"idempotency_key": {
"type": "string",
"format": "uuid"
},
"reason": {
"type": "string"
}
},
"required": [
"identity",
"maximum_quantity",
"evidence_revision",
"evidence_sha256",
"effective_from",
"effective_until",
"expected_version",
"idempotency_key",
"reason"
]
}

Committed qualification change or paginated immutable history

Content type: application/json.

JSON
{
"type": "object",
"additionalProperties": false,
"properties": {
"data": {
"type": "object",
"additionalProperties": false,
"properties": {
"qualification_id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "string",
"pattern": "^[0-9]+$"
}
},
"required": [
"qualification_id",
"revision",
"version"
]
}
},
"required": [
"data"
]
}

Invalid identity, exact quantity, finite interval, evidence or pagination

Authentication required

Explicit platform administration required

Stale version, conflicting idempotency/interval or unavailable current qualified offer

Explicit platform administration only. Ordinary customer and Provider memberships do not grant access. Liability qualifications are finite, immutable maximum billed quantities tied to exact currently approved Provider offer, credential/model/schema revisions, dimensions and meter; they contain no purchase or selling price and must be supported by explicit evidence. Video output estimates are not liability evidence. Publication alone does not authorize dispatch. UUIDs are API references, never display labels. Exact epoch times and versions are decimal integer strings. Identical idempotent retries preserve the original result; changed intent or stale versions conflict. Revocation affects future admission, never rewrites already pinned jobs. Reads use no-store.

Supported scope: implemented