{"record":{"id":"08dce3ad99569f31","repo":"paperclipai/paperclip","slug":"workspaceid-is-required-for-update","errorCode":null,"errorMessage":"workspaceId is required for update","messagePattern":"workspaceId is required for update","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/client/workspace.ts","lineNumber":279,"sourceCode":"          printOutput(result, { json: ctx.json });\n        } catch (err) {\n          handleCommandError(err);\n        }\n      }),\n  );\n}\n\nfunction addProjectWorkspaceJson(parent: Command, name: string, description: string, method: \"post\" | \"patch\"): void {\n  addCommonClientOptions(\n    parent\n      .command(name)\n      .description(description)\n      .argument(\"<projectId>\", \"Project ID\")\n      .argument(\"[workspaceId]\", \"Workspace ID for update\")\n      .requiredOption(\"--payload-json <json>\", \"JSON payload\")\n      .action(async (projectId: string, workspaceId: string | undefined, opts: JsonPayloadOptions) => {\n        try {\n          if (method === \"patch\" && !workspaceId) throw new Error(\"workspaceId is required for update\");\n          const ctx = resolveCommandContext(opts);\n          const path = method === \"post\"\n            ? apiPath`/api/projects/${projectId}/workspaces`\n            : apiPath`/api/projects/${projectId}/workspaces/${workspaceId}`;\n          const result = method === \"post\"\n            ? await ctx.api.post(path, parseJson(opts.payloadJson))\n            : await ctx.api.patch(path, parseJson(opts.payloadJson));\n          printOutput(result, { json: ctx.json });\n        } catch (err) {\n          handleCommandError(err);\n        }\n      }),\n  );\n}\n\nfunction addProjectRuntimeAction(parent: Command, name: string, description: string, actionResource: string): void {\n  addCommonClientOptions(\n    parent","sourceCodeStart":261,"sourceCodeEnd":297,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/cli/src/commands/client/workspace.ts#L261-L297","documentation":"The workspace update (patch) JSON command requires the positional workspaceId argument; it was missing, so the update has no target workspace.","triggerScenarios":"Thrown at cli/src/commands/client/workspace.ts:279 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the workspaceId when updating a workspace."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}