Test site changes

Make changes to your site and test them in your sandbox.

Before you begin

To complete this step, you must have the sandboxID for an existing sandbox.

Now that your sandbox is up and running, you can use it to test changes to your site delivery options. In this example, you’ll modify the request hostname for your sandbox.

How to

  1. GET your sandbox.
    GET /sandbox-api/v1/sandboxes/{sandboxId}
  2. Modify the requestHostname in the JSON body.
  3. Make a PUT request to update your sandbox.
    PUT /sandbox-api/v1/sandboxes/{sandboxId}/properties/{sandboxPropertyId}
  4. Confirm that the behavior changes were applied as expected.
    curl http://localhost:{connector_port} -H"Host: {requestHostnameForSandbox}"

    For example:

    curl http://localhost:9090 -H"Host: www.example.com"