|
| 1 | +--- |
| 2 | +layout: docs |
| 3 | +menu: |
| 4 | + docsplatform_{{.version}}: |
| 5 | + identifier: api-administration-overview |
| 6 | + name: Overview |
| 7 | + parent: api-administration |
| 8 | + weight: 5 |
| 9 | +menu_name: docsplatform_{{.version}} |
| 10 | +section_menu_id: api |
| 11 | +--- |
| 12 | + |
| 13 | +# Administration — Overview |
| 14 | + |
| 15 | +Two admin surfaces: the legacy `/admin` group (administrative-org admins) and `/accounts/admin` |
| 16 | +(site-admin console powering the ACE admin UI). Both admin groups require Token + org context + authz checks. |
| 17 | +(The site-settings routes below are a separate surface whose read endpoints are public — see that table.) |
| 18 | + |
| 19 | +## `/api/v1/admin` (administrative-org admins) |
| 20 | + |
| 21 | +| Method | Path | Description | |
| 22 | +|--------|------|-------------| |
| 23 | +| GET | `/orgs` | List all organizations | |
| 24 | +| GET/POST | `/users` | List / create users | |
| 25 | +| PATCH/DELETE | `/users/:username` | Edit / delete a user | |
| 26 | +| POST | `/users/:username/update`, `/users/:username/change-password` | Update profile / change password | |
| 27 | +| GET/POST | `/users/:username/orgs` | List / create orgs for a user | |
| 28 | +| GET | `/users/:uid` | Get user info by ID | |
| 29 | + |
| 30 | +## `/api/v1/accounts/admin` (site admin console) |
| 31 | + |
| 32 | +| Method | Path | Description | |
| 33 | +|--------|------|-------------| |
| 34 | +| GET | `/` | Usage analytics dashboard | |
| 35 | +| GET | `/config` | Site configuration | |
| 36 | +| POST | `/config/test_mail` | Send a test email | |
| 37 | +| GET | `/monitor` | Site monitor info | |
| 38 | +| DELETE | `/delete/inactive-users` | Purge inactive users | |
| 39 | +| GET | `/users` | List users | |
| 40 | +| GET | `/users/deleted_accounts` | List deleted accounts | |
| 41 | +| POST | `/users/deleted_accounts/:id/reactivate` | Reactivate a deleted user | |
| 42 | +| POST | `/users/new` | Create a user | |
| 43 | +| POST | `/users/:userid` | Edit a user | |
| 44 | +| POST | `/users/:userid/delete` | Deactivate a user | |
| 45 | +| GET | `/orgs` | List organizations | |
| 46 | +| GET | `/orgs/orphaned/` | List orphaned organizations | |
| 47 | +| DELETE | `/orgs/orphaned/delete/:id` | Delete an orphaned org | |
| 48 | +| GET | `/clusters` | List all clusters | |
| 49 | +| GET | `/auths`, `/auths/auth-types` | List authentication sources / types | |
| 50 | +| POST | `/auths/new` | Create an authentication source | |
| 51 | +| GET/POST | `/auths/:authid`, POST `/auths/:authid/delete` | Manage an auth source | |
| 52 | +| GET | `/external_oauth` | List external OAuth2 sources | |
| 53 | +| POST | `/external_oauth/new`, `/external_oauth/:provider`, `/external_oauth/:provider/delete` | Manage external OAuth2 sources | |
| 54 | + |
| 55 | +## Site settings (misc, `/api/v1`) |
| 56 | + |
| 57 | +| Method | Path | Auth | Description | |
| 58 | +|--------|------|------|-------------| |
| 59 | +| GET | `/allowed-domains` | Public | List whitelisted email domains | |
| 60 | +| POST/PATCH | `/allowed-domains` | Site admin authz | Add / remove a whitelisted domain | |
| 61 | +| GET | `/disable-registration` | Public | Get registration enabled/disabled status | |
| 62 | +| POST | `/disable-registration` | Site admin authz | Enable/disable new user registration | |
| 63 | +| GET | `/branding` | Public | Get branding (logo, app name, colors) | |
| 64 | +| POST | `/branding` | Org + authzCheck(edit_branding_options) | Update branding | |
| 65 | + |
| 66 | +## Reference pages |
| 67 | + |
| 68 | +- [Administrative org](../admin-org.md) |
| 69 | +- [Site admin console](../site-admin-console.md) |
| 70 | +- [Site settings](../site-settings.md) |
0 commit comments