Skip to main content
PUT
/
api
/
captain
/
agents
/
{id}
/
config
/
raw
Save agent raw config
curl --request PUT \
  --url http://localhost:63372/api/captain/agents/{id}/config/raw \
  --header 'Content-Type: application/json' \
  --cookie captain_session= \
  --data '
{
  "content": "# Updated YAML content..."
}
'
{
  "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

Body

application/json
content
string
required
Example:

"# Updated YAML content..."

Response

Success

ok
boolean
required
Example:

true