Permissions
Every permission a role can hold, and the routes that need it.
A role bundles permissions with a scope (the content it applies to); a person or a service account holds roles. Every route checks one permission before it reads or changes anything: an actor holding no role with it is refused with 403 forbidden. A read of content outside the actor's scope answers 404 not-found, as for content that does not exist.
- Global permissions are about the system, not about content: a role's scope does not apply to them.
- Read permissions only read: a scope admits a read of a module shared with content outside it.
| Permission | What it allows | Kind | Routes |
|---|---|---|---|
content. | Read released content in scope | scoped, read | 81 |
content. | See drafts and review state | scoped, read | 8 |
content. | Create and edit modules | scoped | 30 |
content. | Comment, approve, request changes | scoped | 2 |
content. | Sign off restricted module types | scoped | 1 |
release. | Merge changes and cut releases | scoped | 7 |
translation. | Order and accept translations | scoped | 15 |
webhook. | Manage webhook subscribers | global | 9 |
admin. | Create roles, assign people | global | 48 |
admin. | Set the product name, logos and colours | global | 4 |
admin. | Set up backups and hold the backup key | global | 8 |
content.read
Read released content in scope
content.read.draft
See drafts and review state
| Route | What it does |
|---|---|
GET /change-sets/{changeSetId}/review | Where a change set’s review stands |
GET /maintenance-lines | List maintenance lines |
GET /maintenance-lines/{maintenanceLineId} | Read a maintenance line |
GET /maintenance-lines/{maintenanceLineId}/releases | List the releases of a maintenance line |
GET /reports/translations | Report translation coverage |
GET /reports/module-usage | Report module usage |
GET /reports/translations/csv | Download translation coverage as CSV |
GET /reports/module-usage/csv | Download module usage as CSV |
content.edit
Create and edit modules
content.review
Comment, approve, request changes
| Route | What it does |
|---|---|
POST /change-sets/{changeSetId}/return | Return a change set to its author |
POST /change-sets/{changeSetId}/approve | Approve a change set in review |
content.approve
Sign off restricted module types
| Route | What it does |
|---|---|
POST /change-sets/{changeSetId}/sign-off | Sign off a change set’s restricted module types |
release.publish
Merge changes and cut releases
| Route | What it does |
|---|---|
POST /change-sets/{changeSetId}/merge | Merge an approved change set into its base |
POST /releases | Cut a release |
POST /releases/{releaseId}/withdraw | Withdraw a release |
POST /releases/{releaseId}/outputs/plan | Plan a release’s outputs again |
POST /releases/{releaseId}/outputs/{outputId}/retry | Render a failed output again |
POST /maintenance-lines | Start a maintenance line |
POST /maintenance-lines/{maintenanceLineId}/close | Close a maintenance line |
translation.manage
Order and accept translations
webhook.manage
Manage webhook subscribers
| Route | What it does |
|---|---|
GET /webhooks | Webhooks |
POST /webhooks | Add a webhook |
GET /webhooks/{webhookId} | A webhook |
DELETE /webhooks/{webhookId} | Delete a webhook |
PATCH /webhooks/{webhookId} | Change a webhook |
POST /webhooks/{webhookId}/secret | Rotate a webhook’s secret |
GET /webhooks/{webhookId}/deliveries | A webhook’s deliveries |
POST /webhooks/{webhookId}/test | Send a webhook a test event |
POST /webhooks/{webhookId}/deliveries/{deliveryId}/retry | Send a failed delivery again |
admin.roles
Create roles, assign people
admin.branding
Set the product name, logos and colours
| Route | What it does |
|---|---|
PATCH /branding | Change the branding |
GET /branding/images | List the branding images |
POST /branding/images | Upload a branding image |
DELETE /branding/images/{hash} | Delete an unused branding image |
admin.backups
Set up backups and hold the backup key
| Route | What it does |
|---|---|
GET /backup-settings | Backup settings |
PATCH /backup-settings | Change the backup settings |
GET /backup-keys | Backup keys |
POST /backup-keys | Make or rotate the backup key |
GET /backup-runs | Backup history |
POST /backup-requests | Back up now, or test the location |
GET /backup-requests/{requestId} | A backup request |
GET /backup-status | Backup status |
Routes without a permission
Public routes (the health check, the licence, the API reference) and routes any signed-in actor may call (for example GET /me). A route that reads content needs content.read through the ref it opens, whatever else it needs.
| Route | What it does |
|---|---|
GET /health | Health check |
GET /preview/fonts/{name} | A font of the preview pages |
GET /preview/{name} | A stylesheet of the preview pages |
GET /d/-/fonts/{name} | A font of the stable address pages |
GET /d/-/{name} | A stylesheet of the stable address pages |
GET /me | Who is calling |
GET /demo/users | Users to act as (demo mode) |
GET /health/ready | Readiness check |
GET /about | Licence and source code |
GET /branding | Read the branding |
GET /branding/images/{hash} | Read a branding image |
GET /change-sets | List change sets |
GET /change-sets/{changeSetId} | Read a change set |
GET /locks | List locks |
GET /locks/{lockId} | Read a lock |
GET /auth/providers | Identity providers |
POST /auth/sign-out | Sign out |
GET /auth/{provider}/sign-in | Begin signing in (browser) |
GET /auth/{provider}/callback | Finish signing in (browser) |
GET /auth/options | Sign-in options |
POST /auth/password/sign-in | Sign in with a password |
POST /auth/password/forgot | Forgot password |
POST /auth/password/link | Open a one-time link |
POST /auth/password/set | Set a password with a one-time link |
POST /me/password | Change your password |
POST /auth/email-code/request | Email me a code |
POST /auth/email-code/sign-in | Sign in with a code by email |
POST /auth/email-code/link | Sign in with the link from a code’s email |
GET /me/notifications | List your notifications |
GET /me/notifications/unread-count | Count your unread notifications |
GET /me/notifications/{notificationId} | Read one of your notifications |
POST /me/notifications/read | Mark your notifications read |
GET /me/preferences | Read your preferences |
PATCH /me/preferences | Change your preferences |