OpenFolia

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.
PermissionWhat it allowsKindRoutes
content.readRead released content in scopescoped, read81
content.read.draftSee drafts and review statescoped, read8
content.editCreate and edit modulesscoped30
content.reviewComment, approve, request changesscoped2
content.approveSign off restricted module typesscoped1
release.publishMerge changes and cut releasesscoped7
translation.manageOrder and accept translationsscoped15
webhook.manageManage webhook subscribersglobal9
admin.rolesCreate roles, assign peopleglobal48
admin.brandingSet the product name, logos and coloursglobal4
admin.backupsSet up backups and hold the backup keyglobal8

content.read

Read released content in scope

RouteWhat it does
GET /assets/{hash}Read an image
GET /symbols/{id}Read a safety symbol’s artwork
GET /refsBranches and tags
GET /configProject configuration
GET /modulesList modules
GET /modules/{lang}/{id}Read a module
GET /modules/{lang}/{id}/historyList a module’s versions
GET /modules/{lang}/{id}/compareCompare two versions of a module
GET /manualsList manuals
GET /manuals/{id}Read a manual definition
GET /manuals/{id}/variants/{variant}/{lang}Resolve a manual
GET /manuals/{id}/historyList a manual’s versions
GET /manuals/{id}/compareCompare two versions of a manual
GET /manuals/{id}/variants/{variant}/{lang}/pdfRender a manual as PDF
GET /modules/{lang}/{id}/previewPreview a module as HTML
GET /manuals/{id}/variants/{variant}/{lang}/htmlRender a manual as HTML
GET /searchSearch modules, manuals and terms
GET /chunksList retrieval chunks
GET /changesRead the change feed
GET /releasesList releases
GET /releases/{releaseId}Read a release
GET /releases/{releaseId}/changesList what a release changed
GET /changelogRead the changelog
GET /releases/{releaseId}/outputsList a release’s outputs
GET /releases/{releaseId}/outputs/archiveDownload all of a release’s files as one ZIP
GET /releases/{releaseId}/outputs/{outputId}/fileDownload a release output
GET /terms/exportExport the terms
GET /termsList terms
GET /terms/{termId}Read a term
GET /releases/{releaseId}/iirds-packagesList a release’s iiRDS packages
GET /releases/{releaseId}/iirds-packages/{packageId}Make a release’s iiRDS package and describe it
GET /releases/{releaseId}/iirds-packages/{packageId}/fileDownload a release’s iiRDS package
GET /downloadsList the downloads
GET /downloads/{id}/versionsList a download’s versions
GET /downloads/{id}/versions/{releaseId}/fileDownload a file
GET /releases/{releaseId}/dita-packagesList a release’s DITA packages
GET /releases/{releaseId}/dita-packages/{packageId}Make a release’s DITA package and describe it
GET /releases/{releaseId}/dita-packages/{packageId}/fileDownload a release’s DITA package
GET /d/{product}/{manual}/{variant}/{lang}Open a manual at its stable address
GET /d/{product}/{manual}/{variant}/{lang}/pdfThe PDF at a stable address
GET /d/{product}/{manual}/{variant}/{lang}/qr.svgThe QR code of a stable address, as SVG
GET /d/{product}/{manual}/{variant}/{lang}/qr.pngThe QR code of a stable address, as PNG
GET /d/{product}/{manual}/{variant}/{lang}/pdf/qr.svgThe QR code of a stable PDF address, as SVG
GET /d/{product}/{manual}/{variant}/{lang}/pdf/qr.pngThe QR code of a stable PDF address, as PNG
GET /d/{product}/{manual}/{variant}/{lang}/assets/{hash}An image of a stable address’s page
GET /d/{product}/{manual}/{variant}/{lang}/symbols/{id}A safety symbol of a stable address’s page
GET /stable-addressesList stable addresses
GET /assetsList images and attachments
GET /change-sets/{changeSetId}/assets/{hash}Preview an image or a file uploaded into a change set
GET /config/usagesHow much content uses each configured value
GET /module-summariesList module summaries
GET /change-sets/{changeSetId}/changesList what a change set changes
GET /change-sets/{changeSetId}/modules/{lang}/{moduleId}/working-copyRead a module’s working copy
GET /change-sets/{changeSetId}/manuals/{manualId}/working-copyRead a manual’s working copy
GET /change-sets/{changeSetId}/config/working-copyRead the configuration’s working copy
GET /change-sets/{changeSetId}/terms/{termId}/working-copyRead a term’s working copy
GET /change-sets/{changeSetId}/page-designs/{designId}/working-copyRead a page design’s working copy
GET /change-sets/{changeSetId}/page-design-templates/{templateId}/files/working-copyRead a template file’s working copy
GET /manuals/{id}/variants/{variant}/{lang}/pdf/pages/{page}.pngRender a page of a manual’s PDF as PNG
GET /manuals/{id}/variants/{variant}/{lang}/pdf/layout-warningsList what a manual’s PDF layout cannot fit
GET /modules/{lang}/{id}/hidden-contentList what a module hides for a variant
GET /manuals/{id}/variants/{variant}/{lang}/hidden-contentList what a manual hides for one of its variants
GET /change-sets/{changeSetId}/commentsList a change set’s comments
POST /change-sets/{changeSetId}/commentsComment on a block, or reply to a thread
GET /change-sets/{changeSetId}/comments/{commentId}Read a comment
DELETE /change-sets/{changeSetId}/comments/{commentId}Delete one’s own comment
PATCH /change-sets/{changeSetId}/comments/{commentId}Edit one’s own comment
POST /change-sets/{changeSetId}/comments/{commentId}/resolveResolve a thread
POST /change-sets/{changeSetId}/comments/{commentId}/reopenReopen a thread
GET /manuals/{id}/checksCheck a manual
GET /change-sets/{changeSetId}/checksCheck a change set
GET /page-designsList page designs
GET /page-designs/{designId}Read a page design
GET /page-design-templatesList page design templates
GET /page-design-templates/{templateId}/filesList a page design template’s files
GET /page-design-templates/{templateId}/fileRead a page design template’s text file
GET /page-design-templates/{templateId}/preview/pages/{page}.pngPreview a page design template as a page image
GET /page-design-template-example/filesList the example page design template’s files
GET /variantsList variant attributes
GET /variants/matchesBuilds a condition holds for
GET /variants/{attributeId}/usagesWhere a variant attribute or value is used

content.read.draft

See drafts and review state

RouteWhat it does
GET /change-sets/{changeSetId}/reviewWhere a change set’s review stands
GET /maintenance-linesList maintenance lines
GET /maintenance-lines/{maintenanceLineId}Read a maintenance line
GET /maintenance-lines/{maintenanceLineId}/releasesList the releases of a maintenance line
GET /reports/translationsReport translation coverage
GET /reports/module-usageReport module usage
GET /reports/translations/csvDownload translation coverage as CSV
GET /reports/module-usage/csvDownload module usage as CSV

content.edit

Create and edit modules

RouteWhat it does
DELETE /assets/{hash}Delete an unused file
POST /change-sets/{changeSetId}/assetsUpload an image, an attachment or a font into a change set
POST /change-setsStart a change set
PATCH /change-sets/{changeSetId}Rename a change set
POST /change-sets/{changeSetId}/abandonAbandon a change set
DELETE /locks/{lockId}Release a lock
POST /change-sets/{changeSetId}/locksLock a module or manual for a change set
PUT /change-sets/{changeSetId}/modules/{lang}/{moduleId}/working-copySave a module’s working copy
DELETE /change-sets/{changeSetId}/modules/{lang}/{moduleId}/working-copyDiscard a module’s working copy
PUT /change-sets/{changeSetId}/manuals/{manualId}/working-copySave a manual’s working copy
DELETE /change-sets/{changeSetId}/manuals/{manualId}/working-copyDiscard a manual’s working copy
PUT /change-sets/{changeSetId}/config/working-copySave the configuration’s working copy
DELETE /change-sets/{changeSetId}/config/working-copyDiscard the configuration’s working copy
PUT /change-sets/{changeSetId}/terms/{termId}/working-copySave a term’s working copy
DELETE /change-sets/{changeSetId}/terms/{termId}/working-copyDiscard a term’s working copy
PUT /change-sets/{changeSetId}/page-designs/{designId}/working-copySave a page design’s working copy
DELETE /change-sets/{changeSetId}/page-designs/{designId}/working-copyDiscard a page design’s working copy
PUT /change-sets/{changeSetId}/page-design-templates/{templateId}/files/working-copySave a template file’s working copy
DELETE /change-sets/{changeSetId}/page-design-templates/{templateId}/files/working-copyDiscard a template file’s working copy
POST /change-sets/{changeSetId}/commitsCommit working copies
POST /change-sets/{changeSetId}/revertsTake changes out of a change set
POST /change-sets/{changeSetId}/submitSubmit a change set for review
POST /change-sets/{changeSetId}/refreshUpdate a change set from its base
GET /change-sets/{changeSetId}/refresh-conflictsList the conflicts an update reported
POST /change-sets/{changeSetId}/carry-forwardCarry a fix forward to main
POST /change-sets/{changeSetId}/rebaseMove a change set onto its rewritten base’s current head
POST /change-sets/{changeSetId}/module-renamesChange a module’s ID
GET /change-sets/{changeSetId}/module-references/{moduleId}What renaming a module would touch
GET /style-reviewWhether the style review is set up
POST /change-sets/{changeSetId}/modules/{lang}/{moduleId}/style-reviewReview a module’s style with a model

content.review

Comment, approve, request changes

RouteWhat it does
POST /change-sets/{changeSetId}/returnReturn a change set to its author
POST /change-sets/{changeSetId}/approveApprove a change set in review

content.approve

Sign off restricted module types

RouteWhat it does
POST /change-sets/{changeSetId}/sign-offSign off a change set’s restricted module types

release.publish

Merge changes and cut releases

RouteWhat it does
POST /change-sets/{changeSetId}/mergeMerge an approved change set into its base
POST /releasesCut a release
POST /releases/{releaseId}/withdrawWithdraw a release
POST /releases/{releaseId}/outputs/planPlan a release’s outputs again
POST /releases/{releaseId}/outputs/{outputId}/retryRender a failed output again
POST /maintenance-linesStart a maintenance line
POST /maintenance-lines/{maintenanceLineId}/closeClose a maintenance line

translation.manage

Order and accept translations

RouteWhat it does
GET /translations/statusList translation status
GET /translations/status/{lang}/config/projectRead the project labels’ translation status
GET /translations/status/{lang}/designs/{designId}Read a page design’s translation status
GET /translations/status/{lang}/manuals/{manualId}Read a manual’s own translation status
GET /translations/status/{lang}/{moduleId}Read a translation status
GET /translations/exportsList translation jobs
POST /translations/exportsExport translations (delta)
GET /translations/exports/{jobId}Read a translation job
POST /translations/exports/{jobId}/cancelCancel a translation job
GET /translations/exports/{jobId}/fileDownload a translation job’s XLIFF
GET /translations/exports/{jobId}/packageDownload a translation job as a COTI package
POST /translations/importsValidate a translation import
GET /translations/imports/{importId}Read a translation import
POST /translations/imports/{importId}/applyApply a translation import
POST /translations/mark-currentMark a translation as current

webhook.manage

Manage webhook subscribers

RouteWhat it does
GET /webhooksWebhooks
POST /webhooksAdd a webhook
GET /webhooks/{webhookId}A webhook
DELETE /webhooks/{webhookId}Delete a webhook
PATCH /webhooks/{webhookId}Change a webhook
POST /webhooks/{webhookId}/secretRotate a webhook’s secret
GET /webhooks/{webhookId}/deliveriesA webhook’s deliveries
POST /webhooks/{webhookId}/testSend a webhook a test event
POST /webhooks/{webhookId}/deliveries/{deliveryId}/retrySend a failed delivery again

admin.roles

Create roles, assign people

RouteWhat it does
GET /secret-keyWhere the secret key is
GET /jobs/statusBackground work
GET /storage-usageStorage used
GET /storage-usage/filesLargest uploaded files
GET /audit-events/exportExport audit events
GET /audit-eventsList audit events
GET /usersUsers
POST /usersAdd a user
GET /settingsRead the installation settings
PATCH /settingsChange the installation settings
POST /locks/{lockId}/breakBreak someone’s lock
POST /locks/breakBreak all locks of a change set or a holder
GET /rolesRoles
POST /rolesCreate a role
GET /roles/{roleId}A role
DELETE /roles/{roleId}Delete a role
PATCH /roles/{roleId}Change a role
GET /users/{userId}A user
PATCH /users/{userId}Change a user
POST /users/{userId}/relationships/rolesGive a user roles
DELETE /users/{userId}/relationships/rolesTake roles from a user
POST /users/{userId}/deactivateDeactivate a user
POST /users/{userId}/reactivateReactivate a user
GET /service-accountsService accounts
POST /service-accountsAdd a service account
GET /service-accounts/{serviceAccountId}A service account
PATCH /service-accounts/{serviceAccountId}Change a service account
POST /service-accounts/{serviceAccountId}/relationships/rolesGive a service account roles
DELETE /service-accounts/{serviceAccountId}/relationships/rolesTake roles from a service account
POST /service-accounts/{serviceAccountId}/deactivateDeactivate a service account
POST /service-accounts/{serviceAccountId}/reactivateReactivate a service account
GET /service-accounts/{serviceAccountId}/tokensA service account’s tokens
POST /service-accounts/{serviceAccountId}/tokensIssue a token
POST /service-accounts/{serviceAccountId}/tokens/{tokenId}/revokeRevoke a token
GET /group-mappingsGroup mappings
POST /group-mappingsMap a group to a role
GET /group-mappings/{mappingId}A group mapping
DELETE /group-mappings/{mappingId}Remove a group mapping
POST /users/{userId}/inviteInvite a user
DELETE /users/{userId}/inviteWithdraw an invite
POST /users/{userId}/password-resetMake a password reset link
GET /mailEmail’s settings
POST /mail/testSend a test email
GET /outbox/statusOutbox consumers
GET /importersList the importers
POST /importsCheck an import (a dry run, or stored to apply)
GET /imports/{importId}Read an import
POST /imports/{importId}/applyApply an import

admin.branding

Set the product name, logos and colours

RouteWhat it does
PATCH /brandingChange the branding
GET /branding/imagesList the branding images
POST /branding/imagesUpload a branding image
DELETE /branding/images/{hash}Delete an unused branding image

admin.backups

Set up backups and hold the backup key

RouteWhat it does
GET /backup-settingsBackup settings
PATCH /backup-settingsChange the backup settings
GET /backup-keysBackup keys
POST /backup-keysMake or rotate the backup key
GET /backup-runsBackup history
POST /backup-requestsBack up now, or test the location
GET /backup-requests/{requestId}A backup request
GET /backup-statusBackup 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.

RouteWhat it does
GET /healthHealth 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 /meWho is calling
GET /demo/usersUsers to act as (demo mode)
GET /health/readyReadiness check
GET /aboutLicence and source code
GET /brandingRead the branding
GET /branding/images/{hash}Read a branding image
GET /change-setsList change sets
GET /change-sets/{changeSetId}Read a change set
GET /locksList locks
GET /locks/{lockId}Read a lock
GET /auth/providersIdentity providers
POST /auth/sign-outSign out
GET /auth/{provider}/sign-inBegin signing in (browser)
GET /auth/{provider}/callbackFinish signing in (browser)
GET /auth/optionsSign-in options
POST /auth/password/sign-inSign in with a password
POST /auth/password/forgotForgot password
POST /auth/password/linkOpen a one-time link
POST /auth/password/setSet a password with a one-time link
POST /me/passwordChange your password
POST /auth/email-code/requestEmail me a code
POST /auth/email-code/sign-inSign in with a code by email
POST /auth/email-code/linkSign in with the link from a code’s email
GET /me/notificationsList your notifications
GET /me/notifications/unread-countCount your unread notifications
GET /me/notifications/{notificationId}Read one of your notifications
POST /me/notifications/readMark your notifications read
GET /me/preferencesRead your preferences
PATCH /me/preferencesChange your preferences

On this page