/text endpoint provides an interface for managing text snippets in our shop system. You can define language-specific variables that are used within templates. Changes to these texts can conveniently be made via the admin interface or automatically via the API, without having to adapt the templates themselves. The interface also provides functions for retrieving, editing and deleting individual text snippets as well as publishing the changes.
Supported methods
List of all supported methods.Data fields of a text snippet
Example
Methods for text snippets
The methods documented here provide an interface for managing text snippets in the shop system. They let you load, create, update and delete variables that contain language-dependent texts — for example, for buttons, error messages or other UI elements. Each text snippet can be available in multiple languages. To use these methods, the corresponding permissions to read, write, create or delete text snippets must be available.3.1 GET text
This method loads a list of all available text snippets including their translations. Each entry contains the associated variable and the existing language versions with additional meta information such as time of change and author. To use this endpoint, the corresponding permissions to read text snippets must be available.Example
Response
Filter fields
variable, text, author, system, used, changedAt
Sort fields
variable, text, languageId, author, system, used, changedAt
Error codes
GET text/authors
This method returns a list of user IDs that have edited at least one text snippet. The data can be used, for example, to filter or analyze author activity. To use this endpoint, the corresponding permissions to read text snippets must be available.Example
Response
Error codes
GET text/{id}
This method loads all translations of a specific text snippet, identified by the name of the variable. For each language a separate entry is returned with information such as text content, editor and time of change. To use this endpoint, the corresponding permissions to read text snippets must be available.Example
Response
Error codes
POST text
This method can be used to create a new text variable with multiple language versions. You provide the variable namename and at least one language object containing language data.languageId and text data.text. The variable must be unique — an entry with the same name must not yet exist.
To use this endpoint, the corresponding permissions to create text snippets must be available.
Example
Request body
Response
Error codes
POST text/{id}/duplicate
This method can be used to duplicate an existing text variable. All language versions and properties of the original variable are taken over. The name of the new variable is generated automatically by appending a number to the end of the original name. If the original name does not yet contain a number at the end, the digit 1 is added (e.g. “titel” becomes “titel1”). If the name already ends in a number, the system checks which name variants with this prefix already exist and uses the next free higher number. Example: if variables with the names “x1” to “x9” already exist, duplicating one of them creates “x10”. If, for example, “x4” is missing, “x4” is created instead. The new variable is unique and can be used or edited independently of the original variable. To use this endpoint, the corresponding permissions to create text snippets must be available.Example
Response
Error codes
PUT text/{id}
This method can be used to update existing text snippets of a variable or to rename the variable itself. It is possible to change translations for one or multiple languages — languages that are not specified remain unchanged. To use this endpoint, the corresponding permissions to write text snippets must be available.Example
Request body
Response
Error codes
DELETE text/{id}
This method can be used to delete an existing text variable completely. This affects all associated translations in different languages.To use this endpoint, the corresponding permissions to delete text snippets must be available.
Example
Response
Error codes
Methods for publishing
The following methods let you publish text snippets in the shop system. The system checks whether a publishing process is running or whether a new one can be started. To use these functions, the corresponding permissions to publish text snippets must be available.GET text/publish
This method can be used to check whether a publishing process for text snippets is currently running. If no process is active, the result of the last compilation is additionally returned assuccess. The success field is only present if running has the value false.
To query the status, the corresponding permissions to read text snippets must be available.
