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

AjaX22
AjaX22 Member
edited June 21 in APIs & Domo Developer

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


    
        
            Screenshot 2025-06-21 141120.png
    



    
        
            Screenshot 2025-06-21 140944.png
    



    
        
            Screenshot 2025-06-21 140921.png
    


Answers

  • @brycec is the man when it comes to this. He has created a nice collection here:

    https://www.postman.com/brycewc/domo-product-apis/overview

    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 to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.
  • brycec
    brycec Domo Employee

    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!

  • AjaX22
    AjaX22 Member

    Hi @brycec , thanks for the advice will check the support team. if these are all product API's then we can use them inside code engine using codeEngine requests, and we can use them using domo.METHOD inside DDX apps also, right? correct me If I'm wrong

  • brycec
    brycec Domo Employee

    @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!