Update sandbox property

Change the CP code or add request hostnames to your sandbox.

Before you begin

This step assumes you are modifying an existing sandbox and know the sandboxID.

Your sandbox can support multiple request hostnames for testing purposes. Follow these steps to add request hostnames to your sandbox.

How to

  1. Form a JSON request body including the requestHostnames and cpcode you want to test in your sandbox.
    {	
      
       "requestHostnames": [
           "my.example.com", 
           "info.example.com", 
           "shop.example.com"
      
        ], 
      
        "cpcode": 1234

    }
  2. Issue a PUT request to /sandbox-api/v1/sandboxes/{sandboxId}/properties/{propertyId} to confirm the changes.
    A 204 response confirms that the sandbox has been updated with the changes.

Next steps

Test site or property changes against the requestHostnames in your sandbox.