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

Assign a configured personal credential to its account

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

PUT /api/v1/vendors/{id}/personal-owner

Installation administrator only. Ownership is immutable. Exact retries return success without another audit event. This does not activate Provider offers, grant funds or qualify commercial supply. Initial assignment rejects credentials with any model route pricing, including disabled mappings; explicitly clear those prices first. Ownership assignment and model publication serialize on the credential row.

Operation: assignPersonalCredentialOwner.

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 PUT "$NIU_ORIGIN/api/v1/vendors/{id}/personal-owner" \
-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",
"expected_revision"
],
"properties": {
"organization_id": {
"type": "string",
"format": "uuid"
},
"expected_revision": {
"type": "integer",
"format": "int64",
"minimum": 1
}
}
}

Personal owner assigned or exact assignment already exists.

Content type: application/json.

JSON
{
"type": "object",
"additionalProperties": false,
"required": [
"assigned"
],
"properties": {
"assigned": {
"type": "boolean",
"const": true
}
}
}

Invalid assignment input.

Authentication required.

Installation administrator required.

Stale revision, different owner, existing model route pricing, commercial qualification or unavailable account.

Installation administrator only. Ownership is immutable. Exact retries return success without another audit event. This does not activate Provider offers, grant funds or qualify commercial supply. Initial assignment rejects credentials with any model route pricing, including disabled mappings; explicitly clear those prices first. Ownership assignment and model publication serialize on the credential row.