Perform API call to create a new task

Perform API call to create a new task. With make It with a template only very badly. That’s why I have to use an API call.

However, I am missing three points. Where do I get the information to replace “123e4567-e89b-12d3-a456-426614174000“?

“typeOfWorkId": ‘123e4567-e89b-12d3-a456-426614174000’,
“taskStatusId": ‘123e4567-e89b-12d3-a456-426614174000’,
“entityId": ”123e4567-e89b-12d3-a456-426614174000”,

thanks for helping me, Alexander

Hi @post, can you explain how you’re making the request?

The typeOfWorkId is the Type of Work Id that defines what kind of task this is. You can fetch all configured types of work of your workspaces with this endpoint: GET /typeofwork

The taskStatusId is the id of the status to create the task in. This id depends on the project you want to create the task for. This is how you can fetch the task statuses for one project: GET /projects/{projectId}/taskStatuses

The entityId in this case is the id of the project you want to create the task for.
There is a detailed explanation here too: Tasks — awork API | Documentation

Let me know if you have any other questions.