# Changing Task-Status via API (make.com)

**URL:** <https://community.awork.com/t/changing-task-status-via-api-make-com/630>\
**Category:** Developer Forum\
**Created:** [29. Februar 2024 um 10:48 UTC](https://community.awork.com/t/changing-task-status-via-api-make-com/630 "2024-02-29T10:48:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tim](https://community.awork.com/u/tim)\
**Post date:** [29. Februar 2024 um 10:48 UTC](https://community.awork.com/t/changing-task-status-via-api-make-com/630/1 "2024-02-29T10:48:05Z")

</div>

Hello everyone, I would like to automate the status change of selected tasks via the Awork API and [Make.com](http://Make.com). However, I don’t quite understand the structure here and how to configure the request.

 ![#_api_anleitung_beispiel_payload](https://europe1.discourse-cdn.com/flex013/uploads/awork1/original/1X/865cf7c927d76698a1a3f0a19c18fa06c0144f22.png)

- Example from the awork api documentation

![#_abgefragter_task_infos_get](https://europe1.discourse-cdn.com/flex013/uploads/awork1/original/1X/79d6203183859b8f63373a2c71bf53cc2f3be2ed.png)

- existing infos about the task status i get from the api call „v1/me/projecttasks“

 ![#_post_request_status_change_task](https://europe1.discourse-cdn.com/flex013/uploads/awork1/original/1X/bd2447a78bae189b8f87697bc842d5111ec74e1a.png)

- one of the configurations i tried (api-call: v1/tasks/changestatuses)

 ![#_fehler_info](https://europe1.discourse-cdn.com/flex013/uploads/awork1/original/1X/cb57f0edc650615edd989f4849a83f221ab6f9f0.png)

- the error i get

can someone please explain how to can change a taskstatus with the api?

Thanks in advance!

Best regards  
Tim

---

<div class="post-metadata">

**Author:** ![Nils](https://dub1.discourse-cdn.com/flex013/user_avatar/community.awork.com/nils/32/96_2.png) [@Nils](https://community.awork.com/u/Nils)\
**Post date:** [29. Februar 2024 um 11:01 UTC](https://community.awork.com/t/changing-task-status-via-api-make-com/630/2 "2024-02-29T11:01:10Z")

</div>

Hi Tim, it looks like you are missing quotes around the Guid values, can you try that?

---

<div class="post-metadata">

**Author:** ![tim](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tim](https://community.awork.com/u/tim)\
**Post date:** [29. Februar 2024 um 12:41 UTC](https://community.awork.com/t/changing-task-status-via-api-make-com/630/3 "2024-02-29T12:41:00Z")

</div>

Hey Nils, you’re right. I just quickly put it together as an example. The request works, it goes through (HTTP 204)… just like yesterday. However, the status doesn’t change and I don’t understand how to change the status if there’s no parameter for it. I mean, I want to set a task to ‚Open‘ or ‚Closed‘. How do I do that now? Could you perhaps provide an example for the body and the URL for closing a task and for opening a task? Thanks!

---

<div class="post-metadata">

**Author:** ![Nils](https://dub1.discourse-cdn.com/flex013/user_avatar/community.awork.com/nils/32/96_2.png) [@Nils](https://community.awork.com/u/Nils)\
**Post date:** [29. Februar 2024 um 12:46 UTC](https://community.awork.com/t/changing-task-status-via-api-make-com/630/4 "2024-02-29T12:46:09Z")

</div>

You are doing everything right, you just need to use a statusId of a task status which is open or closed, this in depending on your configuration in your awork. you can get the task statuses for a project by making a call to [awork API](https://openapi.awork.com/#/ProjectTasks/get_projects __projectId__ taskstatuses)  
GET [/projects/{projectId}/taskstatuses]  
and then use the right `statusId` in the POST to `changeStatuses`
