{"record":{"id":"47aa743476ab5f67","repo":"Dokploy/dokploy","slug":"forbidden-47aa74","errorCode":"FORBIDDEN","errorMessage":"Changing scheduleType is not allowed in the cloud version.","messagePattern":"Changing scheduleType is not allowed in the cloud version\\.","errorType":"exception","errorClass":"TRPCError","httpStatus":403,"severity":"error","filePath":"apps/dokploy/server/api/routers/schedule.ts","lineNumber":98,"sourceCode":"\t\t\t\taction: \"create\",\n\t\t\t\tresourceType: \"schedule\",\n\t\t\t\tresourceId: newSchedule?.scheduleId,\n\t\t\t\tresourceName: newSchedule?.name,\n\t\t\t});\n\t\t\treturn newSchedule;\n\t\t}),\n\n\tupdate: protectedProcedure\n\t\t.input(updateScheduleSchema)\n\t\t.mutation(async ({ input, ctx }) => {\n\t\t\tconst existingSchedule = await findScheduleById(input.scheduleId);\n\n\t\t\tif (\n\t\t\t\tIS_CLOUD &&\n\t\t\t\tinput.scheduleType &&\n\t\t\t\tinput.scheduleType !== existingSchedule.scheduleType\n\t\t\t) {\n\t\t\t\tthrow new TRPCError({\n\t\t\t\t\tcode: \"FORBIDDEN\",\n\t\t\t\t\tmessage: \"Changing scheduleType is not allowed in the cloud version.\",\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tawait assertHostScheduleAccess(\n\t\t\t\tctx,\n\t\t\t\texistingSchedule.scheduleType,\n\t\t\t\texistingSchedule.serverId,\n\t\t\t);\n\t\t\tif (\n\t\t\t\tinput.scheduleType &&\n\t\t\t\tinput.scheduleType !== existingSchedule.scheduleType\n\t\t\t) {\n\t\t\t\tawait assertHostScheduleAccess(\n\t\t\t\t\tctx,\n\t\t\t\t\tinput.scheduleType,\n\t\t\t\t\tinput.serverId ?? existingSchedule.serverId,","sourceCodeStart":80,"sourceCodeEnd":116,"githubUrl":"https://github.com/Dokploy/dokploy/blob/546686ea3587f12ec5652217dedd9f7960fb6d15/apps/dokploy/server/api/routers/schedule.ts#L80-L116","documentation":"Error \"Changing scheduleType is not allowed in the cloud version.\" thrown in Dokploy/dokploy.","triggerScenarios":"Thrown at apps/dokploy/server/api/routers/schedule.ts:98 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"546686ea3587f12ec5652217dedd9f7960fb6d15","analyzedAt":"2026-08-27T05:18:58.095Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}