"Invalid-model" Code bei Erstellung eines Tasks über die API

Hallo,

bei dem Versuch einen Task über die API zu erstellen, kam es zu folgendem Fehler:

[code] => invalid-model

[description] => Failed to read parameter „GeneralTaskPostForm model“ from the request body as JSON.

[link] => https://developers.awork.com

[traceId] => 1157fe68e652d7485390ec67acf31590

Was muss am übergebenen Body angepasst werden, sodass der Fehler nicht mehr auftaucht

Hallo @mirco.koenig, your request body seems to have a lot of HTML and other control characters, which might be seen as invalid JSON. The problem is that this fails so early while parsing the request that it’s hard to see what the actual cause is. Can you send a simple text in the task name and description to confirm?

When I did a test just now the task was created without any issues, even with an almost identical task name. Only the description was different. But it still had most of the HTML Elements of the previous Request, since I take a taskbundle and replace placeholders inside the description with new texts.

Hi @mirco.koenig ,

deine TypeOfWorkId ist leider falsch, darum failed der Call. 1fe13651-85e9-40c9-a2e2-7e9f67cd94e4c. The c is one char to max at the ende.