Organization API: Org Staff Team
Every Organization API operation tagged Org Staff Team.
Base URL: https://api.coritan.com/api/v1. Paths below are complete.
To try these requests in the browser, open the interactive Organization API reference.
POST /api/v1/orgs/{org_slug}/staff/team
| Name |
In |
Type |
Required |
org_slug |
path |
string |
yes |
application/json (required)
| Field |
Type |
Required |
email |
string (email) |
yes |
name |
string or null |
no |
role |
string |
no |
send_invite_email |
boolean |
no |
password |
string or null |
no |
customer_link |
string |
no |
customer_id |
integer or null |
no |
| Status |
Meaning |
201 |
Success. |
422 |
The request is not valid. detail lists each problem. |
GET /api/v1/orgs/{org_slug}/staff/team/detail
Everyone on the brand, with role, last sign-in and whether they can
sign in at all. The picker route (/staff/team) stays small; this is
the team page.
| Name |
In |
Type |
Required |
org_slug |
path |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
GET /api/v1/orgs/{org_slug}/staff/team/policy
| Name |
In |
Type |
Required |
org_slug |
path |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
PATCH /api/v1/orgs/{org_slug}/staff/team/policy
Require a second factor of everyone on the brand. From the next sign-in
a member without one can only enrol until they have. The admin turning
it on must already have theirs, or they would be the first one locked
into enrolment.
| Name |
In |
Type |
Required |
org_slug |
path |
string |
yes |
application/json (required)
| Field |
Type |
Required |
require_mfa |
boolean |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
PATCH /api/v1/orgs/{org_slug}/staff/team/{member_id}
| Name |
In |
Type |
Required |
member_id |
path |
integer |
yes |
org_slug |
path |
string |
yes |
application/json (required)
| Field |
Type |
Required |
role |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
DELETE /api/v1/orgs/{org_slug}/staff/team/{member_id}
| Name |
In |
Type |
Required |
member_id |
path |
integer |
yes |
org_slug |
path |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
GET /api/v1/orgs/{org_slug}/staff/team/{member_id}/customer-link
Which storefront customer account a teammate is, if any.
| Name |
In |
Type |
Required |
member_id |
path |
integer |
yes |
org_slug |
path |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
PUT /api/v1/orgs/{org_slug}/staff/team/{member_id}/customer-link
Attach a teammate to an existing customer account, or make them one
with their email. Whoever holds the account holds its servers and its
money, so this is a step-up action, and any storefront sessions the
console opened on a previous account end.
| Name |
In |
Type |
Required |
member_id |
path |
integer |
yes |
org_slug |
path |
string |
yes |
application/json (required)
| Field |
Type |
Required |
mode |
string |
no |
customer_id |
integer or null |
no |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
DELETE /api/v1/orgs/{org_slug}/staff/team/{member_id}/customer-link
Make a teammate console-only. The customer account stays as it is,
with its servers and invoices; only the tie to this teammate goes.
| Name |
In |
Type |
Required |
member_id |
path |
integer |
yes |
org_slug |
path |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
POST /api/v1/orgs/{org_slug}/staff/team/{member_id}/reset-mfa
For a teammate who lost their phone: remove their second factor and end
their sessions. They sign in with the password and, if the brand requires
it, enrol again straight away. Never for yourself (disable your own with
a code), and never for the owner from here.
| Name |
In |
Type |
Required |
member_id |
path |
integer |
yes |
org_slug |
path |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
POST /api/v1/orgs/{org_slug}/staff/team/{member_id}/reset-password
| Name |
In |
Type |
Required |
member_id |
path |
integer |
yes |
org_slug |
path |
string |
yes |
application/json (required)
| Field |
Type |
Required |
send_email |
boolean |
no |
password |
string or null |
no |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |
POST /api/v1/orgs/{org_slug}/staff/team/{member_id}/revoke-sessions
| Name |
In |
Type |
Required |
member_id |
path |
integer |
yes |
org_slug |
path |
string |
yes |
| Status |
Meaning |
200 |
Success. |
422 |
The request is not valid. detail lists each problem. |