--- title: "Update Cron" url: https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/job-scheduling/cron/update-cron/ description: "This page describes the Node.js method to update a cron in your project with sample code snippets." last_updated: 2026-09-08T11:07:33Z service: Job Scheduling type: general related_links: - name: "Component Help Documentation" url: /en/job-scheduling/help/cron/introduction/ - name: "Java SDK" url: /en/sdk/java/v1/job-scheduling/cron/update-cron/ - name: "Python SDK" url: /en/sdk/python/v1/job-scheduling/cron/update-cron/ - name: "REST API Collection" url: /en/api/code-reference/job-scheduling/cron/update-cron/update-one-time-cron/#UpdateaOne-TimeCron --- # Update Cron > **Note:** This SDK is currently in deprecation. Migrate to [JavaScript SDK](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/job-scheduling/cron/update-cron/) now. The following SDK can be used to update a particular cron's details. You can use this SDK to update the name, description and target. You can select your required cron by passing the [`cron id`](https://docs.catalyst.zoho.com/en/job-scheduling/help/cron/key-concepts/#cron-id) to the `getCron()` method, and update the details using the `updateCron()` method. > **Note:** You can use this method to update details of both [Pre-Defined Crons](https://docs.catalyst.zoho.com/en/job-scheduling/help/implementation/submit-job-predefined-cron/) and [Dynamic Crons](https://docs.catalyst.zoho.com/en/job-scheduling/help/implementation/submit-job-dynamic-cron/). ```javascript const cron = await jobScheduling.CRON.getCron('test_cron'); // get cron cron.cron_name = 'test'; const updatedCronDetailsWithName = await jobScheduling.CRON.updateCron('test_cron', cron); // update cron details with cron name updatedCronDetailsWithName.cron_name = 'test_new'; const updatedCronDetailsWithId = await jobScheduling.CRON.updateCron('1234567890', updatedCronDetailsWithName); // update cron details with cron id ```