Skip to main content
PUT
/
api
/
captain
/
agents
/
{id}
/
skills
/
{name}
Create or update skill
curl --request PUT \
  --url http://localhost:63372/api/captain/agents/{id}/skills/{name} \
  --header 'Content-Type: application/json' \
  --cookie captain_session= \
  --data '
{
  "content": "Skill instructions...",
  "description": "Optional description"
}
'
{
  "ok": true
}

Authorizations

captain_session
string
cookie
required

HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.

Path Parameters

id
string
required

Agent ID

name
string
required

Skill name

Body

application/json
content
string
required
Example:

"Skill instructions..."

description
string
Example:

"Optional description"

Response

Success

ok
boolean
required
Example:

true