--- title: "Update Cron" url: https://docs.catalyst.zoho.com/en/sdk/javascript/v1/job-scheduling/cron/update-cron/ description: "This page describes the method to perform operations in the DataStore component." last_updated: 2026-09-09T10:45:38Z service: Job Scheduling type: general related_links: - name: "Catalyst Job Scheduling" url: /en/job-scheduling/ - name: "Cron" url: /en/job-scheduling/help/cron/introduction/ - name: "Java SDK Documentation" url: /en/sdk/java/v1/job-scheduling/cron/update-cron/ - name: "Python SDK Documentation" url: /en/sdk/python/v1/job-scheduling/cron/update-cron/ - name: "REST API Documentation" url: /en/api/code-reference/job-scheduling/cron/update-cron/update-one-time-cron/#UpdateaOne-TimeCron repository: name: "Repository" url: https://github.com/catalystbyzoho/zcatalyst-sdk-js --- # Update Cron > **Note:** Ensure you have installed the [required package](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/job-scheduling/overview/#prerequisites) to use this SDK method. You can use the `updateCron()` SDK method to update the name, description, and target of a [Pre-defined](https://docs.catalyst.zoho.com/en/job-scheduling/help/implementation/submit-job-predefined-cron/) or [Dynamic](https://docs.catalyst.zoho.com/en/job-scheduling/help/implementation/submit-job-dynamic-cron/#configure-a-dynamic-cron) cron. 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()`](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/job-scheduling/cron/get-cron-details/) method, and update the details using the `updateCron()` method. The `jobScheduling` reference used in the code snippets below is the [component instance](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/job-scheduling/create-instance/) created to perform these operations. ```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 ```