{"record":{"id":"c804ceddc7a41c66","repo":"multica-ai/multica","slug":"no-built-in-shortcut-for-resource-type-q-pass-th","errorCode":null,"errorMessage":"no built-in shortcut for resource type %q; pass the full payload via --ref '<json>'","messagePattern":"no built-in shortcut for resource type %q; pass the full payload via --ref '<json>'","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/cmd/multica/cmd_project.go","lineNumber":916,"sourceCode":"\t\t\tif mode == \"\" {\n\t\t\t\tdelete(ref, \"execution_mode\")\n\t\t\t} else {\n\t\t\t\tref[\"execution_mode\"] = mode\n\t\t\t}\n\t\t}\n\t\tif v, ok := ref[\"local_path\"].(string); !ok || v == \"\" {\n\t\t\treturn nil, false, fmt.Errorf(\"local_directory: --local-path is required (no existing local_path to merge with)\")\n\t\t}\n\t\tif v, ok := ref[\"daemon_id\"].(string); !ok || v == \"\" {\n\t\t\treturn nil, false, fmt.Errorf(\"local_directory: --daemon-id is required (no existing daemon_id to merge with)\")\n\t\t}\n\t\treturn ref, true, nil\n\tdefault:\n\t\t// Unknown type or empty (resource not found) — caller must use --ref.\n\t\tif cmd.Flags().Changed(\"url\") || cmd.Flags().Changed(\"default-branch-hint\") ||\n\t\t\tcmd.Flags().Changed(\"local-path\") || cmd.Flags().Changed(\"daemon-id\") ||\n\t\t\tcmd.Flags().Changed(\"ref-label\") || cmd.Flags().Changed(\"execution-mode\") {\n\t\t\treturn nil, false, fmt.Errorf(\"no built-in shortcut for resource type %q; pass the full payload via --ref '<json>'\", resourceType)\n\t\t}\n\t\treturn nil, false, nil\n\t}\n}\n\nfunc mustString(cmd *cobra.Command, name string) string {\n\tv, _ := cmd.Flags().GetString(name)\n\treturn v\n}\n\nfunc runProjectResourceRemove(cmd *cobra.Command, args []string) error {\n\tclient, err := newAPIClient(cmd)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tctx, cancel := cli.APIContext(context.Background())\n\tdefer cancel()","sourceCodeStart":898,"sourceCodeEnd":934,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/cmd/multica/cmd_project.go#L898-L934","documentation":"Error \"no built-in shortcut for resource type %q; pass the full payload via --ref '<json>'\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/cmd/multica/cmd_project.go:916 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass the full payload via --ref '<json>' for this resource type."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}