Skip to content
Coritan Docs

Organization API: Organizations & Members: Orgs

The 2 Organization API operations for orgs.

View as Markdown

Part of Organizations & Members.

Method Path Summary
GET /api/v1/orgs List organizations
POST /api/v1/orgs Create an organization you own

GET /api/v1/orgs

The organizations this account belongs to, newest first, each with the caller's role in my_role: owner for the org's owner whatever their member row says, as get_org_context decides it.

A deleted one is left out for every member: its owner deleted it, and only platform staff can bring it back.

Authentication: an access token of a member of the organization, sent as Authorization: Bearer <token>.

Status Meaning
200 Success.

A 200 response is a list; each item has these fields:

Field Type
[].id integer
[].slug string
[].name string
[].tier string
[].status string
[].billing_mode string
[].created_at string (date-time) or null
[].my_role string or null

Create an organization you own

Section titled Create an organization you own

POST /api/v1/orgs

Create an organization you own.

A new organization starts on the usage billing basis. Coritan charges it wholesale rates on what its customers' servers use. GET /{org_slug}/billing/basis/preview and PUT /{org_slug}/billing/basis show and change the basis, from the 1st of the next month. 409 when the slug is taken.

Authentication: an access token of a member of the organization, sent as Authorization: Bearer <token>.

application/json (required)

Field Type Required
name string yes
slug string yes
billing_mode string no
Status Meaning
201 Success.
422 The request is not valid. detail lists each problem.

Fields of a 201 response:

Field Type
id integer
slug string
name string
owner_user_id integer
parent_org_id integer or null
tier string
status string
billing_mode string
platform_owned boolean
billing_basis string
billing_basis_next string or null
billing_basis_next_at string (date-time) or null
orders_held boolean
orders_held_reason string or null
max_customers integer
max_services integer
max_sub_resellers integer
max_api_calls_month integer
max_custom_products integer
created_at string (date-time) or null
updated_at string (date-time) or null
my_role string or null