# \[Solved\] Web API Post set Headers not working

**URL:** <https://community.thunkable.com/t/solved-web-api-post-set-headers-not-working/527618>\
**Category:** Questions about Thunkable X\
**Tags:** solved, webapi\
**Created:** [March 21, 2020, 9:59pm UTC](https://community.thunkable.com/t/solved-web-api-post-set-headers-not-working/527618 "2020-03-21T21:59:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirro](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kirro](https://community.thunkable.com/u/Kirro)\
**Post date:** [March 21, 2020, 9:59pm UTC](https://community.thunkable.com/t/solved-web-api-post-set-headers-not-working/527618/1 "2020-03-21T21:59:42Z")

</div>

Hi,

I want to use Web Api with Post to set Data on a Web Server. Unfortunately, it is not working when I set Headers and Body via Blocks.  
When I set it via Designer it works.  
Is there anything which I need to do before? Maybe a special order?

This is working like a charm:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/c/bc99607b427db6ef80c2fdfed1e286908d745809.png)

Does not work (I know in screenshot there is a type in Content-Type, but it does not change anything if I write it correctly)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/e/1e9af9a0ffcba307eccce87af96c2a9ad478ac8e.png)

Thank you,  
Kirro

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 21, 2020, 10:46pm UTC](https://community.thunkable.com/t/solved-web-api-post-set-headers-not-working/527618/2 "2020-03-21T22:46:31Z")

</div>

THis is a known issue. I believe the developers are working on a fix for this.

[edit] to clarify. Only the headers need to be set in the design screen. You can definitely set a post body in the blocks. Are you sure your blocks are correct? Do you get an error message from the api you are trying to communicate with

---

<div class="post-metadata">

**Author:** ![Kirro](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kirro](https://community.thunkable.com/u/Kirro)\
**Post date:** [March 22, 2020, 9:05am UTC](https://community.thunkable.com/t/solved-web-api-post-set-headers-not-working/527618/3 "2020-03-22T09:05:32Z")

</div>

@jared, sry did not see your edit. It is my own api. It works when I use Postman and it also works when I use GET.

I removed the set header block, after that it works.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 22, 2020, 1:36pm UTC](https://community.thunkable.com/t/solved-web-api-post-set-headers-not-working/527618/4 "2020-03-22T13:36:46Z")

</div>

> [@Kirro](#):
>
> I removed the set header block, after that it works.

Great work @Kirro ! I will edit the title to indicate solved!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:39am UTC](https://community.thunkable.com/t/solved-web-api-post-set-headers-not-working/527618/5 "2024-11-08T11:39:42Z")

</div>


