# Choose your dashboard's colour and modules

> Set the accent colour of an organization's partner dashboard, switch its modules on and off, and change the kind of business it is, under Settings, Dashboard.

Source: https://www.coritan.com/docs/organizations/modules/

In the dashboard:

- Partner dashboard: /org/…/modules: https://partners.coritan.com

A *module* is a section of the partner dashboard's sidebar that you switch on when your organization uses it. An organization that only takes payments does not need the hosting pages, and one that sells hosting may not need a store. Payments, customers, analytics, your team and settings are always there.

Switching a module off hides its section and its tabs. It deletes nothing and stops nothing: products keep selling and servers keep running.

The same page sets the dashboard's *accent colour*: the colour of its buttons, its links and the page you are on in the sidebar. It is Coritan blue until you pick your own.

## Before you begin

- You need the owner or admin role to change the accent colour, the modules or the kind of business. Every other member can read the page.
- You chose the modules once when you [created the organization](/docs/organizations/create-an-organization/). An organization created before the partner dashboard has every module on.

## What each module covers

| Module | Covers |
| --- | --- |
| **Hosting** | Services, plans and pricing, resource costs, cloud servers, apps, DNS and mail. It also adds the **Resources** tab to **Analytics**. |
| **Store** | Your online store: orders, shoppers, the catalogue, promotions, affiliates, the audience, email marketing, store money and store setup. The section also needs a store, which Coritan opens for an organization ([Run your store from the partner dashboard](/docs/organizations/commerce/)). |
| **Payment links** | Checkout pages and PayNow, for taking a payment without a store. |
| **Growth** | Traffic, campaigns, and search and tags. |
| **Community** | Discord and the game proxy. |
| **Developers** | API keys and webhooks. |

## Set the accent colour

1. In the [partner dashboard](https://partners.coritan.com), open your organization. In the sidebar, select **Settings**, then the **Dashboard** tab.
2. In the **Accent colour** card, type a colour as `#` and six digits, such as `#7C3AED`, select the swatch to pick one, or select a preset. **Your brand colour** is offered when your storefront has a primary colour of its own ([Change organization settings](/docs/organizations/settings/)).
3. Check the **Preview**. It draws a button, a link and the active page in that colour, in the theme you are using.
4. Select **Save**.

The whole dashboard changes at once, for every member of the organization, in the light and the dark theme. The colour applies inside this organization only: the list of your organizations, the sign-in pages and your account stay Coritan blue, and your storefront keeps its own colours.

The dashboard keeps text readable whatever you pick. It uses your colour as it is when a button's label and a link can be read in it, and a darker or lighter tone of the same colour when they cannot. A sentence under the field says so when that happens. The dark theme uses a lighter tone of a dark colour, and a grey becomes a slate.

To go back to the default, select **Reset to Coritan blue**.

## Switch a module on or off

1. On the **Dashboard** tab, find the **Modules** card.
2. In the **Modules** card, flip the switch beside the module. A module saves as you flip it.
3. When you turn one off, the dashboard asks first and names what it hides. Select the button that names the module, such as `Turn off Growth`, to confirm.

The sidebar follows at once. A member who is not an owner or admin sees **On** or **Off** beside each module in place of the switch.

## Change the kind of business

The kind of business sets which modules an organization starts with:

| Kind | Modules it turns on |
| --- | --- |
| **Hosting** | Hosting, Growth, Developers |
| **Online store** | Store, Growth, Developers |
| **Payments only** | Payment links, Developers |
| **Several of these** | All six |

1. On the **Dashboard** tab, choose a kind in the **Kind of business** card.
2. Select **Save**. When the new kind turns off a module that is on, the dashboard names those modules and asks you to confirm with **Change the kind**.

Saving a kind switches every module to that kind's set. You can then turn any module back on in the **Modules** card. The kind also decides which first steps **Getting started** lists on [Home](/docs/organizations/overview/#work-through-the-first-steps).

## Open a page of a module that is off

A link or bookmark to a page inside a module that is off still opens the page. A notice above it names the module. Owners and admins see a button that turns the module on, and everyone else is told who can.

## Troubleshooting

A section of the sidebar is missing
: Its module is off, or your role opens none of its pages. An owner or admin checks the **Dashboard** tab. [Organization roles and permissions](/docs/organizations/roles-and-permissions/) lists what each role opens.

The **Store** module is on and the section is still missing
: The organization has no store yet. Ask [support](https://www.coritan.com/dashboard/support) to open one.

**Apps** is missing from **Hosting**
: App Deployment is not open to the organization yet.

The page says **Could not load the dashboard's settings**
: Every module is shown until the page loads, and nothing can be changed until then. Select **Try again**.

The colour on screen is not the one you typed
: The dashboard darkened or lightened it so text stays readable, and the sentence under the field says which. Pick a darker colour to see it used as it is in the light theme.

**Save** stays off in the **Accent colour** card
: The field does not hold a colour, or it holds the colour already saved. A colour is `#` and six digits from `0` to `9` and `A` to `F`.

## Related

- [Create an organization](/docs/organizations/create-an-organization/)
- [Change organization settings](/docs/organizations/settings/)
- [Read your organization's Home page](/docs/organizations/overview/)
- [How organizations work](/docs/organizations/how-organizations-work/)

## With the API

Any member reads the modules and the accent colour:

```bash
curl "https://api.coritan.com/api/v1/orgs/acme/console" \
  -H "Authorization: Bearer $CORITAN_TOKEN"
```

```json
{
  "kind": "hosting",
  "modules": [
    { "id": "hosting", "label": "Hosting", "description": "Services, plans and pricing, resource costs, cloud servers, apps, DNS and mail.", "enabled": true },
    { "id": "store", "label": "Store", "description": "Your online store: orders, catalogue, promotions and store money.", "enabled": false }
  ],
  "accent": "#7c3aed"
}
```

`modules` always lists the six modules in the same order: `hosting`, `store`, `payment_links`, `growth`, `community` and `developers`. `kind` is `hosting`, `store`, `payments` or `everything`. An organization that has never saved a choice answers `everything` with every module on, and a module its saved choice does not name is on. `accent` is the organization's accent colour as `#` and six lower-case digits, or `null` when it has picked none and the dashboard shows Coritan blue.

An admin or the owner changes them with `PUT`. Anyone else gets `403`.

```bash
curl -X PUT "https://api.coritan.com/api/v1/orgs/acme/console" \
  -H "Authorization: Bearer $CORITAN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"kind": "store", "modules": {"hosting": true}}'
```

| Field | Meaning |
| --- | --- |
| `kind` | Optional. Sets the kind and switches every module to that kind's set. |
| `modules` | Optional. `{"<id>": true}` or `false` for each module to switch, applied after `kind` when both are sent. A module left out keeps its state, so `modules` alone keeps the kind. |
| `accent` | Optional. A colour as `#rrggbb` or `#rgb`, in either case, stored as six lower-case digits. `null` goes back to the default. Left out, the accent stays as it is. It never changes the kind or the modules, and they never change it. |

The answer is what `GET` returns after the change. An unknown kind, an unknown module, a value that is not `true` or `false`, an `accent` that is not a colour, or a field the body does not have answers `422`, and nothing is saved. More than 60 saves in an hour by one member in one organization answer `429`. A save that changes something is recorded in the [audit log](/docs/organizations/audit-log/) as `org.console_updated`.

## API

- `GET /api/v1/orgs/{org_slug}/console`: The partner dashboard's modules and accent colour for this organization (https://www.coritan.com/docs/api/reference/organizations/organizations-members/console/#op-get-api-v1-orgs-org-slug-console)
- `PUT /api/v1/orgs/{org_slug}/console`: Switch the partner dashboard's modules and set its accent colour (https://www.coritan.com/docs/api/reference/organizations/organizations-members/console/#op-put-api-v1-orgs-org-slug-console)
