cURL
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 }
Save raw YAML content to the agent’s agent.yaml file.
HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.
Agent ID
"# Updated YAML content..."
Success
true