Pinter
ENID
Agent Assets
View as Markdown

Update Agent Asset

PUT/api/agents/assets/{asset_id}

Overview

Endpoint for update agent asset.

Requirements

  • Header: API-Version: 1
  • Authentication: Authorization: Bearer <token> (if protected)

Parameters

Path

asset_idstringrequired
Unique UUID of the reusable Agent Asset (Rule, Skill, or Knowledge).

Request body

application/json

namestringrequired
descriptionstring | null
visibilityenumrequired
publicprivateglobalrole_group
role_group_idstring | null
content_markdownstringrequired
metadataobject
change_summarystring | null
{
  "name": "string",
  "description": "string",
  "visibility": "public",
  "role_group_id": "string",
  "content_markdown": "string",
  "metadata": {},
  "change_summary": "string"
}

Responses

200 Successful Response

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[]required
detail[].msgstringrequired
detail[].typestringrequired
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Example

curl -X PUT "$PINTER_URL/api/agents/assets/ast_corp_privacy_policy" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","description":"string","visibility":"public","role_group_id":"string","content_markdown":"string","metadata":{},"change_summary":"string"}'