Backfill missing Artifact owners and Candidate owner attestations

POST
/v1/access/ownership/apply

Grant the missing ownership data to the explicitly named Principal; the Server never derives it. Existing Artifact owners and Candidate attestations are preserved and reported as conflicts when they disagree with the named Principal. Identities with recorded ownership recovery evidence are reported as conflicts and must retain their original attribution. Every item is one idempotent write, so interrupted or repeated runs refill only still-missing items. Set dry_run first to preview the exact items. Requires a deployment administrator; while Access is disabled the Server has no ownership store and reports 503 ownership_migration_unavailable.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer credential resolved to an opaque authenticated Principal by the Server deployment.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/access/ownership/apply" \  -H "Content-Type: application/json" \  -d '{    "owner": {      "type": "user",      "id": "string"    }  }'
{  "dry_run": true,  "applied": [    {      "kind": "artifact_owner",      "scope_id": "string",      "family": "string",      "artifact_id": "string",      "entry_id": "string",      "candidate_id": "string",      "version": 1,      "conflict_code": "string"    }  ],  "conflicts": [    {      "kind": "artifact_owner",      "scope_id": "string",      "family": "string",      "artifact_id": "string",      "entry_id": "string",      "candidate_id": "string",      "version": 1,      "conflict_code": "string"    }  ]}