Ungültiger Feld-Wert (illegal-field-value)
Der Feld-Wert, der bei der HTTP-Abfrage zum Anlegen oder Ändern von Datensätzen übergeben wurde, ist für diesen Feld-Typ ungültig, d.h. er hat den falschen Typ oder einen ungültigen Wert.
Beispiele:
>>> import pprint, requests
>>> api_key = "6809fb00tDfPWbTVNvyeGxFQSFvNYSPTwZybcEQTBsSeMLwVeYZauwSKrEuuvxjqcdqygkoPoQJTJClxdUnSPhenetVXBzJeWI"
>>> response = requests.post(
... "https://my.living-apps.de/rest/apps/5bffc841c26a4b5902b2278c/records",
... headers={
... "Accept": "application/json",
... "X-API-KEY": api_key,
... },
... json={
... "fields": {
... "nachname": 42,
... },
... },
... )
>>> pprint.pprint(response.json())
{'app_id': '5bffc841c26a4b5902b2278c',
'control_identifier': 'nachname',
'control_type': 'string',
'detail': 'The given value must be `None` or of type `str`, but is of type '
'`int`.',
'field_type': 'int',
'field_value': '42',
'status': 400,
'title': 'Unsupported field value',
'type': 'https://my.living-apps.de/docs/REST-Service_error_illegal_field_value.html'}
>>> import pprint, requests
>>> api_key = "6809fb00tDfPWbTVNvyeGxFQSFvNYSPTwZybcEQTBsSeMLwVeYZauwSKrEuuvxjqcdqygkoPoQJTJClxdUnSPhenetVXBzJeWI"
>>> response = requests.post(
... "https://my.living-apps.de/rest/apps/5bffc841c26a4b5902b2278c/records",
... headers={
... "Accept": "application/json",
... "X-API-KEY": api_key,
... },
... json={
... "fields": {
... "geburtsdatum": "2000",
... },
... },
... )
>>> pprint.pprint(response.json())
{'app_id': '5bffc841c26a4b5902b2278c',
'control_identifier': 'geburtsdatum',
'control_type': 'date/date',
'detail': 'The given `date/date` value must conform to the format `%Y-%m-%d`, '
"but it doesn't.",
'field_type': 'str',
'field_value': "'2000'",
'status': 400,
'title': 'Unsupported field value',
'type': 'https://my.living-apps.de/docs/REST-Service_error_illegal_field_value.html'}