Keine Rechte zum Erzeugen einer LivingApp (no-permission-app-creation)
Der bei der HTTP-Abfrage übergebene Benutzer hat nicht die nötigen Rechte, um einen neue LivingApp anzulegen.
Beispiel:
>>> import pprint, requests
>>> api_key = "6809fb00tDfPWbTVNvyeGxFQSFvNYSPTwZybcEQTBsSeMLwVeYZauwSKrEuuvxjqcdqygkoPoQJTJClxdUnSPhenetVXBzJeWI"
>>> response = requests.post(
... "https://my.living-apps.de/rest/apps",
... headers={
... "Accept": "application/json",
... "X-API-KEY": api_key,
... },
... json={
... "name": "My App",
... "description": "My new App",
... "typename_grammatical_gender": "m",
... "typename_nominative_singular": "Test",
... "typename_genitive_singular": "Test",
... "typename_dative_singular": "Test",
... "typename_accusative_singular": "Test",
... "typename_nominative_plural": "Test",
... "typename_genitive_plural": "Test",
... "typename_dative_plural": "Test",
... "typename_accusative_plural": "Test",
... "controls": {
... "my_string": {"label": "My_string", "fulltype": "string/text", "description": "My description"},
... "my_number": {"label": "My Number", "fulltype": "number", "required": True},
... },
... }
... )
>>> pprint.pprint(response.json())
{'detail': "You don't have permission to create a new LivingApp.",
'status': 403,
'title': 'No permission to create a new LivingApp',
'type': 'https://my.living-apps.de/docs/REST-Service_error_no_permission_app_creation.html'}