Get Started: Site Development
Site Management / Channel Configuration
One category of developer changes is to set up and maintain channel configuration. Channel configuration is not accessed through the brX UI, but through the Site Management API. However, even though the channel configuration is not managed through the UI, it still affects the output of the Page Delivery API, in the context of the development project in use, so developers can see the effect of their changes in the Experience Manager.
The Site Management API can be accessed at
An access token is required to use the API. Users with Site Developer privileges can self-manage API tokens in brX (Setup > brXM API token management in the menu).
There is a Swagger UI for exploring and exercising the Site Management API. You can access it at
Using the Site Management API
The Site Management API is a protected management API. All management APIs are exposed at
The Site Management API is the only management API currently available, at /site:
At this moment there is only a version “v1” of this API:
The Site Management API is a REST API. For now, the only (root-level) resources it exposes are channels:
To use the Site Management API, you must:
- Use a user account with Site Developer privileges
- Obtain an access token using the brXM API token management app in brX (Setup > brXM API token management) .
- Pass the access token using the x-auth-token HTTP header with each API request.
The Site Management API uses PUT requests for both resource creation and updates, and it uses the custom X-Resource-Version HTTP header to perform conflict detection for these write requests. Here’s how this works for the Site Management API:
If the X-Resource-Version header is NOT present on a PUT request, the API assumes that the developer’s intent is to create a new entity.
If no entity yet exists at the request path, the request is processed as normal and the new entity is created.
If an entity already exists at the request path, the request will be rejected as invalid.
If an X-Resource-Version header is present on a PUT request, the API assumes that the developer’s intent is to modify an existing entity that has the given X-Resource-Version value.
If the X-Resource-Version value in the header matches the X-Resource-Version value generated for the current state of the entity at the request path, this indicates that no conflicting changes have been made since the X-Resource-Version value was retrieved, and the update is applied as normal.
If the X-Resource-Version value does NOT match, this indicates that the entity WAS modified since the X-Resource-Version value was retrieved, so the new state might be out of date. In that case, the developer should retrieve the current state, reapply the intended change, and submit the new request with the updated X-Resource-Version value and request body.
PUT requests also generate an X-Resource-Version header in the response, so additional updates can be performed on the same entity by copying the X-Resource-Version value from the previous response into the next PUT request.
Modification of channel configuration is only allowed in the context of a development project. As such, this section assumes that you have associated the sample channel (ID “brxsaas”) with a Project as described in Development Environment, and that proper authorization is in place. The Channels tab of the Projects app also displays the “branch ID”, a sequence of 4 random alphanumeric characters prefixed with a ‘v’ (e.g."vS7fT").
For starters, let’s retrieve what channels there are:
This should return a JSON array containing a branch of the sample channel. Its name ("BrX SaaS") and ID (e.g. "brxsaas-vS7fT") match those displayed in the Projects app. This represents the channel in the context of your development project, where you can go push your changes.
Note that the live channel ("core") is not included in the response. It's not meant to be managed directly through the API.
To check what components are available for a channel, you can first retrieve the channel’s component groups. Note that you have to compose the "channel_id" of the normalized channel name ("brxsaas"), a hyphen ('-'), and the branch ID (e.g. "vS7fT").
You can find 2 component groups there: the "base" component group and the "sample" component group.
The "base" component groups is provided by the product, and is immutable. It establishes the base components from which your custom components can extend. Base components are not available to brX UI users, only to developers. Only custom components, set up by developers, can be exposed to brX UI users (in the Experience Manager).
The “sample” component group is provided as a part of the out-of-the-box sample configuration. You can adjust these components, delete them or create new ones. Let’s have a closer look at the sample catalog’s components:
You can see a few examples of components, along with their configurable parameters. Observe how they extend the base components. You can also make them extend other custom components. Log in to the brX UI, navigate to the Experience Manager, select the “BrX SaaS” channel, open the left side panel (see icon below) and select the Components tab. You can see the effect of the above components listed there in the UI.
Let’s make a simple change to such a component, for example by changing the value of the label field. Select for example the "page-catalog" component. Copy the retrieved JSON, update the label and prepare it as the payload of a PUT request. In order to be able to overwrite the existing component, make sure to include the X-Resource-Version HTTP header in your request, and send along the value you received when GETting that resource.
If you check your change in the Experience Manager, you may not see the effect. If so, it’s probably because you're still looking at the “live” channel (called Project: Core in the UI). Switch to your development project, and your change should appear in the left side panel.
You can also check that there currently is only a single "menu" called "main" for that channel:
Menus define a tree structure of text labels and links that can be used to generate various kinds of navigation menus. This can be used to define data for top-navigation, side-navigation, or other similar hierarchies of internal document links or external web links. Note that this API treats an entire menu structure as a single entity, to make it easier to define the tree structure as a whole in a single request.
Likewise, you can retrieve the channel’s routes at
Routes define the URL path structure of a site and the patterns of how request URLs map to content and layouts to generate full pages. This API treats each top-level path element and all of its children as a single entity, so that an entire section of a site can be defined in a single request.
Retrieve a list of layouts at
Layouts define the basic structure or template for a generic page layout. These layouts define the tree structure of component instances that should be present in all pages using that layout. These layouts are linked with specific documents via routes to generate individual pages. Layouts defined here can also be used as templates for Experience Pages that add extra components to enhance the experience on an individual page.
New channels cannot be created in the Site Management API. A user with the Site Admin role can create new almost empty channels in the channel overview of the Experience Manager. For a new channel, only the channel name must be provided in the creation dialogs. After creation, a new channel with the provided name will be visible Channel Manager overview and in the Content Perspective a new content root folder will have been created containing a pages folder with home document containing some 'hello world' text. For the newly created channel, the homepage contains one container, a menu and the channel contains one catalog item, the Content catalog item. The Page Model API for the new channel will be available at
After the channel has been created, you can add it to your developer project (in the Projects app) and start pushing changes through the Site Management API.