Skip to main content

Create or Update Agent

Creates the agent if it doesn't exist; updates it if it does. Identified by name.

PUT /api/v1/registry/agent/{agent_name} — 🌐 Public

Path Parameters

ParameterDescription
agent_nameAgent slug name to create or update

Request Body

Same fields as Register an Agent. Required: id, name, description, url, owner_id.

Examples

curl -X PUT https://nasiko.dev/api/v1/registry/agent/weather-agent \
-H "Content-Type: application/json" \
-d '{
"id": "agent-abc123",
"name": "Weather Agent",
"description": "Fetches current and forecast weather",
"url": "https://weather-agent.example.com",
"owner_id": "user-xyz789",
"version": "1.1.0"
}'

Response

Status: 200 OK