Test property changes

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.

  1. GET your sandbox.
    GET /sandbox-api/v1/sandboxes/{sandboxId}

  2. Choose a sandboxPropertyIdfrom 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"
            }
          },
    
  4. Make a PUT request to update your sandbox.
    PUT /sandbox-api/v1/sandboxes/{sandboxId}/properties/{sandboxPropertyId}/rules

  5. Make a request for the requestHostname associated with the property in your browser.

  6. Assuming the sandbox you modified is the default sandbox, start your sandbox using one of the following options:

  7. 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"
    

👍

This is 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. Once you've completed testing, use Property Manager to apply the changes to a production configuration.


Did this page help you?