Skip to content

Repositories and roles

A repository contains everything that belongs to a game project: stories, challenges, elements, areas, variables, files and the connection to TotoObjects. Repositories are created by administrators.

Status Meaning
Active normal state; content can be changed
Inactive new repositories start inactive; content can be read but not changed
Archived no longer in use

Endpoints that change content (create, update, delete of stories, challenges, elements, …) require an active repository and answer 403 otherwise.

defaults of a repository apply to all its stories:

Field Meaning
lang default language (ISO 639-3, e.g. eng), used when a text has no translation in the player’s language
content title, description and logo of the repository
script JavaScript that is put in front of every variable script – a place for shared helper functions, see Variables and scripts
css custom styles for the player app

Accounts get a role per repository. The roles are ordered; a role includes the rights of the roles below it.

Role Can
Owner everything, including managing permissions of other accounts and access tokens for integrations
Author create and change all content: stories, challenges, elements, areas, variables, files, vouchers
Operator operate running games: search, end and delete sessions, view user inputs, configure TotoObjects of running games
Tester read the activity log of the repository

Missing or insufficient permissions are answered with 400 and error code edit:52.

A personal API key acts with the role of its account in each repository it was created for, but never with more than Author rights: endpoints that require Owner can not be used with a key.