{"record":{"id":"c25d4a5506162795","repo":"paperclipai/paperclip","slug":"skill-version-not-found","errorCode":null,"errorMessage":"Skill version not found","messagePattern":"Skill version not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/routes/company-skills.ts","lineNumber":377,"sourceCode":"    }\n    res.json(result);\n  });\n\n  router.get(\"/companies/:companyId/skills/:skillId/versions\", async (req, res) => {\n    const companyId = req.params.companyId as string;\n    const skillId = req.params.skillId as string;\n    assertCompanyAccess(req, companyId);\n    res.json(await svc.listVersions(companyId, skillId));\n  });\n\n  router.get(\"/companies/:companyId/skills/:skillId/versions/:versionId\", async (req, res) => {\n    const companyId = req.params.companyId as string;\n    const skillId = req.params.skillId as string;\n    const versionId = req.params.versionId as string;\n    assertCompanyAccess(req, companyId);\n    const result = await svc.getVersion(companyId, skillId, versionId);\n    if (!result) {\n      res.status(404).json({ error: \"Skill version not found\" });\n      return;\n    }\n    res.json(result);\n  });\n\n  router.get(\"/companies/:companyId/skills/:skillId/test-inputs\", async (req, res) => {\n    const companyId = req.params.companyId as string;\n    const skillId = req.params.skillId as string;\n    assertCompanyAccess(req, companyId);\n    res.json(await svc.listTestInputs(companyId, skillId));\n  });\n\n  router.post(\n    \"/companies/:companyId/skills/:skillId/test-inputs\",\n    validate(companySkillTestInputCreateSchema),\n    async (req, res) => {\n      const companyId = req.params.companyId as string;\n      const skillId = req.params.skillId as string;","sourceCodeStart":359,"sourceCodeEnd":395,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/server/src/routes/company-skills.ts#L359-L395","documentation":"Error \"Skill version not found\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at server/src/routes/company-skills.ts:377 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the id in the request path or body refers to an existing record in this company; re-list the parent collection to get a valid id.","Check that the record was not deleted or archived, and that the request is scoped to the correct companyId."],"exampleFix":null,"handlingStrategy":null,"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-14T00:17:10.932Z"}