TwentyT
Twenty15mo ago
5 replies
Pawel | #DRIVE

Creating Tasks via API

Hey,

Im trying to create task from the API (https://twenty.com/developers/rest-api/core#/operations/createOneTask)

Body that im sending: "{
"position": 1,
"title": "test",
"body": "test body",
"dueAt": "2019-08-24T14:15:22Z",
"status": "TODO",
"createdBy": {
"source": "API"
},
"assigneeId": "d6e2b518-adf6-4f15-b5a0-163317af4980"
}"

Getting response 201 without errors, but when i enter the Tasks tab it gets always "SyntaxError: Unexpected token T in JSON at position 0
2024-11-18T10:40:25.803777508Z at JSON.parse (<anonymous>)
2024-11-18T10:40:25.803786738Z at ActivityQueryResultGetterHandler.handle (/app/packages/twenty-server/dist/src/engine/api/graphql/workspace-query-runner/factories/query-result-getters/handlers/activity-query-result-getter.handler.js:16:27)"

Version: 0.32.4
Self-Hosted, but checked 5 mins ago and having the same problem.

Do you have any ideas where is the problem?
image.png
Open Source CRM
Was this page helpful?