Pinter
ENID
resources
Lihat sebagai Markdown

Get Resource Ownership Transfer Audit History

GET/api/resources/{resource_type}/{resource_id}/ownership

Overview

Retrieves the immutable audit log of ownership transfers for any managed resource (Agent, Knowledge Document, Tool, Eval Set).

Authentication & Headers

  • Auth: Bearer Token (L1 / L2)
  • Required Header: API-Version: 1

Parameters

  • resource_type (path, string, required): Canonical resource type (agent, knowledge_document, tool, eval_set).
  • resource_id (path, string, required): Unique identifier of the target resource.

Parameter

Path

resource_typestringwajib
Canonical type of the managed resource (agent, document, tool, eval_set).
resource_idstringwajib
Unique identifier of the resource undergoing ownership transfer or audit query.

Respons

200 Ownership audit history trail

400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

401 Unauthorized - Missing, invalid, or expired JWT Bearer token.

403 Forbidden - Insufficient role permissions or resource access denied by RBAC policy.

404 Not Found - The requested resource ID was not found.

422 Validation Error

detailobject[]
detail[].locstring | integer[]wajib
detail[].msgstringwajib
detail[].typestringwajib
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Contoh

curl -X GET "$PINTER_URL/api/resources/agent/agnt_risk_compliance_01/ownership" \
  -H "Authorization: Bearer $ACCESS_TOKEN"