Skip to main content
  • The Live Experiences will not display and the Chameleon JavaScript will not be loaded onto the page.
  • HTTP requests to our Internal APIs (to edit any Experiences or content) will fail.
If you want to know more about managing domains and subdomains in Chameleon, please visit our product documentation. Jump to Environments

Domains (Urls)

Enabling Domains on your Chameleon account via API can be helpful for:
  • Enabling new domains on a top-level-domain.
  • Enabling Chameleon on a white-label application.
With the Chameleon API for Domains, you can:
  • Enable new domains jump ↓.
  • Assign domains to different Environments jump ↓ (production,staging,test,etc.).
  • Enable or disable an existing domain.
  • Retrieve all domains that correspond to the specified parameters (search by tld).
  • Retrieve a specific domain based on its id.

Domain Schema (Url)

Create a Url (enable a new domain)

HTTP Request

POST

HTTP Response

Update a Url

HTTP Request

HTTP Response

Bulk a Url

HTTP Request

POST

HTTP Response

All of the Urls given in the request ids are updated with the value given by enabled, archived_at, or url_group_id. They are sent back even if they were already in the resulting bulk-update state.

Listing all Urls

HTTP Request

GET

HTTP Response

Retrieve a Url

HTTP Request

GET

HTTP Response


Environments (Url Groups)

An Environment is a group of Domains. The purpose of an Environment is to:
  1. Split data out into groups; the groups are used in the Chameleon Dashboard to display your Experience data by environment.
  2. Allow Chameleon Admins a simple way to publish Experiences first to Staging/QA then to Production without needing to change the Url Rules.
  3. Have greater visibility into what your end-users will be eligible for.
All Urls and all Experiences are part of the Default Environment by default Assigning a url_group_id to a TLD means that all future subdomains of that TLD are

Environment Schema (Url Group)

Create a Url Group

HTTP Request

POST

HTTP Response

Update a Url Group

HTTP Request

HTTP Response

Add Domains to an Environment

Updating a Url with a url_group_id of an Environment (Url Group) will assign it to that Environment

Removing Domains from an Environment

Updating a Url with a url_group_id equal to null will assign it to the Default Environment

Listing all Url Groups

HTTP Request

GET

HTTP Response

Retrieve a Url Group

HTTP Request

GET

HTTP Response