multica-ai/multica · error
no fields to update; use flags like --title, --description…
Error message
no fields to update; use flags like --title, --description, --agent, --status, --mode, etc.
What it means
CLI validation in runAutopilotUpdate: no update flags were supplied, so the PATCH body would be empty. The API doesn't accept a no-op update, so the CLI lists the usable flags (--title, --description, --agent, --status, --mode, etc.) instead of sending a doomed request.
Solutions
- Pass at least one field to update, e.g. --title, --status, or --mode.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at server/cmd/multica/cmd_autopilot.go:419 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/23e0366ee33fd4c5.
Report an issue: GitHub.
Appendix: source
Thrown at server/cmd/multica/cmd_autopilot.go:419
body["issue_title_template"] = v
}
clearSubscribers, _ := cmd.Flags().GetBool("clear-subscribers")
subscriberRefs, _ := cmd.Flags().GetStringArray("subscriber")
if clearSubscribers && len(subscriberRefs) > 0 {
return fmt.Errorf("--subscriber and --clear-subscribers are mutually exclusive")
}
if clearSubscribers {
body["subscribers"] = []map[string]string{}
} else if cmd.Flags().Changed("subscriber") {
subscribers, err := resolveAutopilotSubscriberInputs(ctx, client, subscriberRefs)
if err != nil {
return err
}
body["subscribers"] = subscribers
}
if len(body) == 0 {
return fmt.Errorf("no fields to update; use flags like --title, --description, --agent, --status, --mode, etc.")
}
var result map[string]any
if err := client.PatchJSON(ctx, "/api/autopilots/"+autopilotRef.ID, body, &result); err != nil {
return fmt.Errorf("update autopilot: %w", err)
}
output, _ := cmd.Flags().GetString("output")
if output == "json" {
return cli.PrintJSON(os.Stdout, result)
}
fmt.Printf("Autopilot updated: %s (%s)\n", strVal(result, "title"), strVal(result, "id"))
return nil
}
func runAutopilotDelete(cmd *cobra.Command, args []string) error {
client, err := newAPIClient(cmd)
if err != nil {View on GitHub (pinned to 2c0912b6ec)