Salesforce B2C Commerce 23.5 > Developing Your Site > On-Demand Sandboxes > Use the Sandbox API to Manage On-Demand Sandboxes

Create an Operation Scheduler for On-Demand Sandboxes

You can configure when to start and stop sandboxes to better manage on-demand sandbox usage. For example, with an Operation Scheduler, you can turn sandboxes on or off at specific times on specified weekdays. You can set a schedule for a realm or for a specific sandbox.

When creating an Operation Scheduler, keep these considerations in mind:

Create an Operation Scheduler using the PATCH/realms/{realm}/configuration, POST/sandboxes or PATCH /sandboxes/{sandboxId} method.

  1. To open the Sandbox API user interface, go to B2C Commerce Sandbox API.
  2. Click Authorize.
  3. Enter the API client ID for the Sandbox API.
  4. To dismiss the authorization window and return to the Sandbox API user interface, click Close.
  5. (Optional) In the Realms section of the Sandbox API user interface, click to expand the PATCH/realms/{realm}/configuration method.
  6. (Optional) In the Sandbox section of the Sandbox API user interface, click to expand the POST/sandboxes method.
  7. (Optional) To update an operation scheduled, In the Sandbox section of the Sandbox API user interface, click to expand the PATCH /sandboxes/{sandboxId} method.
  8. Click Try it out.
  9. In the request body, modify the startScheduler and stopScheduler weekdays and times to when you want to start and stop auto-scheduled sandboxes.
  10. Specify the four-letter ID for the realm.
  11. Click Execute.
    The API creates an Operation Scheduler that manages all sandboxes in the realm with their autoScheduled parameter set to true.Realm PATCH method.

    Sandbox POST method.

    Sandbox PATCH method.

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.