Why my clickup create task api call is not working?

2.6k Views Asked by At

url : https://private-anon-4e46c952c5-clickup20.apiary-mock.com/api/v2/list/11825158/task

headers: {
      'Authorization': 'pk_3595428_OWNkeyyyy',
      'Content-Type': 'application/json'
    },

Body

{
    "name": "New Task created by apu",
    "description": "New Task Description",
    "status": "Open",
    "priority": 3,
    "due_date":1622341935000,
    "due_date_time": false,
    "time_estimate": 8640000,
    "start_date": 1622428335000,
    "start_date_time": false,
    "notify_all": true,
    "parent": null,
    "links_to": null,
    "check_required_custom_fields": true,
} ```

I get the response status code as 200 but no event is showing up on my clickup.

https://clickup.com/api 
2

There are 2 best solutions below

0
On

Their api documentation is great for some things but if you want an easy out of the box solution for mocking api calls (for any service - not just clickup) I'd recommend Postman. They have all the calls in the documentation pre-written and you can use your personal token to make the calls.

Here's the link to download their postman collection: Postman Clickup Collection

2
On

Basically in ClickUp the structure is Folder => List => Task. By default, all List in your Folder are having todo as a status.

But you are giving the status: "Open", which the List doesn't have that type of status.

Before you are giving any status or custom fields you need to create them in the UI manually. Then you have to give the same when you are creating a task. If you have any doubt mail me at [email protected].