Creating a schedule directly in your Staging or Production environment allows you to have greater control over your schedules on a per environment basis. For example, controlling the intervals, and enabling or disabling different schedules as required. Creating them directly in an environment means they are created as dynamic configuration and won't be included in any subsequent promotions.
You can use the REST API to create dynamic schedules; it is not possible to create dynamic schedules via the UI in Staging and Production environments.
- If you create a schedule via the UI in your Development environment, it will get promoted.
- If you want to use REST to create a schedule in your Development environment, you must use the openidm/config/scheduler endpoint (rather than the openidm/scheduler/job endpoint described below) to ensure the schedule is created as static configuration and included in promotions.
You can use the REST API to create and update dynamic schedules in your environments as detailed in Manage Schedules Using REST.
You can create a schedule using REST, replacing
<tenant-name> with your Identity Cloud tenant name and
<access-token> with the access token you obtained when you authenticated to the Identity Cloud REST API:$ curl \
--request PUT 'https://<tenant-name>.forgeblocks.com/openidm/scheduler/job/reconciliation-schedule' \
--header 'authorization: Bearer <access-token>' \
--header 'content-type: application/json' \
--header 'Accept-API-Version: resource=2.0' \
}'This example creates a schedule (called reconciliation-schedule) that runs a reconciliation for the
systemLdapAccounts_managedAlpha_user mapping every 30 minutes (1800000 milliseconds) and repeats indefinitely.