Skip to main content
Update a right

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

id
string
required

Identifier of the right to update.

Minimum string length: 1
Example:

"view_links"

Body

application/json
version
integer
required

Version the right was read at. The update goes through only while the right is still at that version, so a change made by somebody else in the meantime is not overwritten unnoticed.

Required range: x > 0
acls
(string | null)[]

ACLs that are to carry the right, which is what decides who ends up holding it - a user holds it when one of their groups carries one of these. The list stands for the whole set, so a right left without any reaches nobody, and every ACL named here has to exist.

Example:

"business_user"

actionname
string

Workflow transition the right relates to. Recorded for reference only - nothing resolves the permission from this field.

Example:

"create"

allowedForOrganization
boolean
default:false

Lets the right reach a user who belongs to an organization. Without it the right is resolved only for users outside any organization - which is almost nobody - and it is also hidden from organization administrators browsing the catalogue.

Example:

false

class
string

Kind of permission the right represents, which decides how it is resolved: document for a right over a metadata definition, workflow for one over a workflow transition, left out for a plain generic right. Once it is set, the name has to follow that class's naming format, or the right grants nothing at all.

Example:

"document"

definitionname
string

Metadata definition the right relates to. Recorded for reference only - nothing resolves the permission from this field.

Example:

"d_default"

description
string

Human-readable description of what the right allows, shown wherever the catalogue is listed.

Example:

"Right to view links between records."

group
string

Label the administration screens group the catalogue by. It is free text and carries no meaning of its own.

Example:

"UI Feature"

workflowname
string

Workflow the right relates to. Recorded for reference only - nothing resolves the permission from this field.

Example:

"wf_archive"

Response

Returns the identifier and the new version of the right.

id
string

Value the request produced: the identifier of the object it created or acted upon, or - on the endpoints that issue one - the token it granted.

Example:

"e58cc1acbba3cd8056ce6adb44d46a11a113170e884509c179701270b915b59b"

version
integer

Current version of the record. Send it back with the next update so a concurrent change is not overwritten silently.

Example:

3