cURL
curl --request POST \ --url http://localhost:63372/api/captain/config/test \ --header 'Content-Type: application/json' \ --cookie captain_session= \ --data ' { "content": "# Updated YAML content..." } '
{ "ok": true, "message": "Configuration is valid" }
Validate raw YAML content without saving it to disk.
HMAC-signed session cookie returned by /api/captain/auth/login. Valid for 7 days. Invalidated when password changes.
"# Updated YAML content..."
Validation result
"Configuration is valid"