cURL
curl --request PUT \ --url http://localhost:63372/api/captain/config/raw \ --header 'Content-Type: application/json' \ --cookie captain_session= \ --data ' { "content": "# Updated YAML content..." } '
{ "ok": true }
Save raw YAML content to disk. Validates the YAML before writing. Preserves captain auth settings even if redacted in the input.
HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.
"# Updated YAML content..."
Success
true