I can't able to create tasks in task center using API

I can able to CRUD operate on Projects, Lists without any error
I can able to fetch tasks in projects and list
but unable to create a task and edit an existing task
if I follow the PUT method to create a task in a list mentioned in the documentation it throws error like below:
{ "status": 405,
"statusReason": "Method Not Allowed",
"message": "Not allowed",
"toe": "LETFL93CG3-V296V-J574C"
}
If I use POST method for task creation, i get error like below:
{ "status": 500,
"statusReason": "Internal Server Error",
"message": "Internal Server Error",
"toe": "UJU26ERK38-F78QO-PIQ5O"
}
PS: if you are wondering about access token…generated using client ID and Secret valid for an hour and the documentation link
Answers
-
@brycec is the man when it comes to this. He has created a nice collection here:
According to him, it looks like you need to create a user task like this:
{{baseUrl}}/content/v2/users/:userId/tasks
**Check out my Domo Tips & Tricks Videos
**Make sure toany users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
My Postman collection that @MarkSnodgrass linked is for the Product APIs. You are using the OAuth API. While the Product API is more powerful, in the case of Project and Tasks, the OAuth API likely has equivalent functionality. However, I am also unable to make this request work. So, you can put in a ticket to Domo Support. But in the meantime, I would suggest using the Product APIs instead.
Was this comment helpful? Click Agree or Like below.
Did this comment solve your problem? Accept it as the solution!0 -
@AjaX22, you are correct that Product APIs can be used inside of Code Engine. However, they cannot be used inside of Bricks and Pro Code Apps. Those require the App Framework APIs, a third type of Domo API. However, you can just use the App Framework API for Code Engine or Workflows to call a Code Engine function that then uses the Product APIs.
Was this comment helpful? Click Agree or Like below.
Did this comment solve your problem? Accept it as the solution!0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 665 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 827 Beast Mode
- Visualize
- 2.6K Charting
- 90 App Studio
- 46 Variables
- Automate
- 198 Apps
- 488 APIs & Domo Developer
- 97 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 145 Governance & Security
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive