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

Record specific cascading-deletion consent without dispatch

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

POST /api/v1/vendors/{id}/asset-management/group-deletion-consents

Platform administrator only. Requires explicit irreversible cascading confirmation for a successful saved ordinary group and its exact current DeleteAssetGroup qualification. Consent is immutable, actor-bound and limited to 900 seconds or the grant expiry, whichever is earlier. Identical replay does not renew expiry; changed, expired or revoked consent conflicts. No upstream deletion, credential release or billing mutation. Body is limited to 4096 bytes.

Operation: prepareOrdinaryAssetGroupDeletionConsent.

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

JSON
[
{
"adminBearerAuth": []
}
]

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/vendors/{id}/asset-management/group-deletion-consents" \
-H "Authorization: Bearer $NIU_ADMIN_TOKEN" \
-H 'Content-Type: application/json' \
--data @request.json

Location: path. Required.

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

Required.

JSON
{
"type": "object",
"additionalProperties": false,
"required": [
"organization_id",
"project_id",
"intent_id",
"consent_id",
"authorization_id",
"valid_for_seconds",
"confirm_cascade"
],
"properties": {
"organization_id": {
"type": "string",
"format": "uuid"
},
"project_id": {
"type": "string",
"format": "uuid"
},
"intent_id": {
"type": "string",
"format": "uuid"
},
"consent_id": {
"type": "string",
"format": "uuid"
},
"authorization_id": {
"type": "string",
"format": "uuid"
},
"valid_for_seconds": {
"type": "integer",
"minimum": 1,
"maximum": 900
},
"confirm_cascade": {
"type": "boolean",
"const": true
}
}
}

Identical unexpired consent retained without renewal.

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"consent_id",
"prepared",
"dispatch_available"
],
"properties": {
"consent_id": {
"type": "string",
"format": "uuid"
},
"prepared": {
"type": "boolean",
"const": true
},
"dispatch_available": {
"type": "boolean",
"const": false
}
}
}
}
}

Consent recorded; no upstream dispatch.

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"consent_id",
"prepared",
"dispatch_available"
],
"properties": {
"consent_id": {
"type": "string",
"format": "uuid"
},
"prepared": {
"type": "boolean",
"const": true
},
"dispatch_available": {
"type": "boolean",
"const": false
}
}
}
}
}

Cascading confirmation missing or validity outside bounds.

Authentication required.

Platform administrator required.

Original group not found in the specified workspace and Provider configuration.

Group or qualification unavailable, stale binding, or conflicting/expired/revoked consent.

Request exceeds 4096 bytes.

Invalid request shape or unknown fields.

Platform administrator only. Requires explicit irreversible cascading confirmation for a successful saved ordinary group and its exact current DeleteAssetGroup qualification. Consent is immutable, actor-bound and limited to 900 seconds or the grant expiry, whichever is earlier. Identical replay does not renew expiry; changed, expired or revoked consent conflicts. No upstream deletion, credential release or billing mutation. Body is limited to 4096 bytes.