Test property changes

Modify your property configuration and test functionality in your sandbox.

Before you begin

This section assumes you are familiar with Property Manager and how content-handling rules are applied within a property configuration. In order to complete this step, you must have created a sandbox previously and know the sandboxId.

Once your sandbox is set up, you can use it to test modifications to your property configuration.

How to

  1. GET your sandbox.
    GET /sandbox-api/v1/sandboxes/{sandboxId}
  2. Choose a sandboxPropertyId from the JSON response then GET the associated rule tree.
    GET /sandbox-api/v1/sandboxes/{sandboxId}/properties/{sandboxPropertyId}/rules
  3. Modify a response header within the rule tree.
    {
            "name": "modifyOutgoingResponseHeader",
            "options": {
              "action": "ADD",
              "customHeaderName": "X-Akamai-EXAMPLE-HEADER",
              "headerValue": "THIS-IS-A-HEADER",
              "standardAddHeaderName": "OTHER"
            }
          },
    Note: This is only one example of a modification you can make within your sandbox. You can Use Property Manager to edit rules and quickly create JSON syntax for the logic you want to test.
  4. Make a PUT request to update your sandbox.
    PUT /sandbox-api/v1/sandboxes/{sandboxId}/properties/{sandboxPropertyId}
  5. Make a request for the requestHostname associated with the property in your browser.
  6. Verify that the change was applied.
    curl http://localhost:{connector_port} -H"Host: {requestHostnameForSandbox}"

    For example:

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

Next steps

To apply sandbox-tested changes to a production configuration, use Property Manager.