# API not working as expected

**URL:** https://community.awork.com/t/api-not-working-as-expected/610
**Category:** Developer Forum
**Created:** [27. Februar 2024 um 16:34 UTC](https://community.awork.com/t/api-not-working-as-expected/610 "2024-02-27T16:34:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![make](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@make](https://community.awork.com/u/make)
#### Post date: [27. Februar 2024 um 16:34 UTC](https://community.awork.com/t/api-not-working-as-expected/610/1 "2024-02-27T16:34:54Z")

</div>

Hello,

I am using [make.com](http://make.com) to automate creating projects. To do this, I use the endpoint `/v1/projects` and add the company ID to connect the client to the project. Although the company ID appears in the output of the module in make, meaning the client should connect successfully, the client **does not** appear on the Awork UI. So I have to select the client manually.

Why does the client data appear in the output of make even though the client is not selected in the UI? Are there any solutions for this issue?

Thanks in advance!

 ![moduel_output_make](https://europe1.discourse-cdn.com/flex013/uploads/awork1/original/1X/21a7054b87c5f35ae47ae7163e09adf041723f39.jpeg)

---

<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: [27. Februar 2024 um 16:40 UTC](https://community.awork.com/t/api-not-working-as-expected/610/2 "2024-02-27T16:40:22Z")

</div>

> [@make](#):
>
> Why does the client data appear in the output of make even though the client is not selected in the UI? Are there any solutions for this issue?

Hi,

could you send me the id of the project, either here or to [nils@awork.com](mailto:nils@awork.com)?  
Then we can have a look what is going on.

Best

Nils

---

<div class="post-metadata">

### Author: ![make](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@make](https://community.awork.com/u/make)
#### Post date: [27. Februar 2024 um 16:52 UTC](https://community.awork.com/t/api-not-working-as-expected/610/3 "2024-02-27T16:52:10Z")

</div>

Thanks a lot! I sent you an email with the project ID.

---

<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: [27. Februar 2024 um 16:58 UTC](https://community.awork.com/t/api-not-working-as-expected/610/4 "2024-02-27T16:58:24Z")

</div>

You are welcome. I checked our logs. The POST call is correct and is having a `companyId`. Then 200 ms later, there is a second call (PUT) to update the project, where the `companyId` is null/not set, and therefore the Company is removed from the project. The second call also comes from make. Could you check your scenario for the second call and also include the `companyId` there?

---

<div class="post-metadata">

### Author: ![make](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@make](https://community.awork.com/u/make)
#### Post date: [27. Februar 2024 um 19:14 UTC](https://community.awork.com/t/api-not-working-as-expected/610/5 "2024-02-27T19:14:35Z")

</div>

Oh that’s right. Thank you so much!
