multica-ai/multica · error

nothing to update — pass --ref / --url / --local-path / --la

Error message

nothing to update — pass --ref / --url / --local-path / --label / --position / --clear_label

What it means

Error "nothing to update — pass --ref / --url / --local-path / --label / --position / --clear_label" thrown in multica-ai/multica.

Source

Thrown at server/cmd/multica/cmd_project.go:732

			body["resource_ref"] = ref
		}
	}

	clearLabel, _ := cmd.Flags().GetBool("clear-label")
	if clearLabel {
		body["label"] = nil
	} else if cmd.Flags().Changed("label") {
		label, _ := cmd.Flags().GetString("label")
		body["label"] = label
	}

	if cmd.Flags().Changed("position") {
		pos, _ := cmd.Flags().GetInt32("position")
		body["position"] = pos
	}

	if len(body) == 0 {
		return fmt.Errorf("nothing to update — pass --ref / --url / --local-path / --label / --position / --clear-label")
	}

	var result map[string]any
	if err := client.PutJSON(ctx, "/api/projects/"+projectRef.ID+"/resources/"+resourceRef.ID, body, &result); err != nil {
		return fmt.Errorf("update project resource: %w", err)
	}

	output, _ := cmd.Flags().GetString("output")
	if output == "table" {
		headers := []string{"ID", "TYPE", "REF", "LABEL"}
		rows := [][]string{{
			strVal(result, "id"),
			strVal(result, "resource_type"),
			summarizeResourceRef(result["resource_ref"]),
			strVal(result, "label"),
		}}
		cli.PrintTable(os.Stdout, headers, rows)
		return nil

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Pass at least one field to update: --ref, --url, --local-path, --label, --position, or --clear_label.

When it happens

Trigger: Thrown at server/cmd/multica/cmd_project.go:732 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/aa2438cbab2d3153. Report an issue: GitHub.