Skip to content
Coritan Docs

Organization API: Organizations & Members: Console

The 2 Organization API operations for console.

View as Markdown

Part of Organizations & Members.

Method Path Summary
GET /api/v1/orgs/{org_slug}/console The partner dashboard's modules and accent colour for this organization
PUT /api/v1/orgs/{org_slug}/console Switch the partner dashboard's modules and set its accent colour

The partner dashboard's modules and accent colour for this organization

Section titled The partner dashboard's modules and accent colour for this organization

GET /api/v1/orgs/{org_slug}/console

The partner dashboard's modules and accent colour for this organization. Any member.

Answers kind (hosting, store, payments or everything) and modules, one entry per module in the dashboard's order: id (hosting, store, payment_links, growth, community, developers), label, description and enabled. 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 colour the organization picked for its dashboard, as a lower-case #rrggbb, or null when it picked none and the dashboard draws its default.

Name In Type Required
org_slug path string yes
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.

Switch the partner dashboard's modules and set its accent colour

Section titled Switch the partner dashboard's modules and set its accent colour

PUT /api/v1/orgs/{org_slug}/console

Switch the partner dashboard's modules and set its accent colour. Admins and the owner.

kind sets the kind and switches every module to its preset: hosting turns on hosting, growth and developers, store turns on store, growth and developers, payments turns on payment_links and developers, and everything turns on all six. modules then switches the modules it names ({"<id>": true | false}) and leaves the others as they are, so sending only modules keeps the kind. An unknown kind or module id answers 422 naming the allowed words and saves nothing.

accent sets the dashboard's accent colour: #rrggbb or #rgb in either case, stored as a lower-case #rrggbb. null goes back to the default, and a body without the key keeps the accent as it is. Anything else answers 422 with a sentence that says what a colour looks like, and saves nothing. The accent and the modules never move each other.

A module that is off hides its pages in the dashboard. It deletes nothing and stops nothing. The change is counted against org.console_update (429 past it) and audited as org.console_updated with what moved. It answers what GET /{org_slug}/console answers.

Name In Type Required
org_slug path string yes

application/json (required)

Field Type Required Description
kind string or null no What the organization does: hosting, store, payments or everything. Sending it switches every module to that kind's preset before modules is applied.
modules object or null no Modules to switch, by id: hosting, store, payment_links, growth, community or developers, each true or false. A module left out keeps its state.
accent Accent no The dashboard's accent colour for this organization: # and six hexadecimal digits, or # and three, in either case. It is stored in lower case with six digits. null goes back to the dashboard's default, and leaving the key out keeps the accent as it is. Anything else answers 422.
Status Meaning
200 Success.
422 The request is not valid. detail lists each problem.