# DynaWeb - Inserting a JSON value into the Body of HTTP API Request

**URL:** <https://forum.dynamobim.com/t/dynaweb-inserting-a-json-value-into-the-body-of-http-api-request/69426>\
**Category:** Packages\
**Tags:** api, dynaweb\
**Created:** [October 18, 2021, 11:36pm UTC](https://forum.dynamobim.com/t/dynaweb-inserting-a-json-value-into-the-body-of-http-api-request/69426 "2021-10-18T23:36:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcallU58HA](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@bcallU58HA](https://forum.dynamobim.com/u/bcallU58HA)\
**Post date:** [October 18, 2021, 11:36pm UTC](https://forum.dynamobim.com/t/dynaweb-inserting-a-json-value-into-the-body-of-http-api-request/69426/1 "2021-10-18T23:36:10Z")

</div>

Hello Everyone,

I’m trying to create a PUT request to BIM Track’s API to correct the viewpoints that I created using internal coordinates (I know, I know, stupid mistake). Well, now I have 358 issues in the wrong coordinate system, so I re-oriented the views using Dynamo, wrote the JSON to push them up into BIM Track, and even was able to do it in Postman (both by uploading a JSON file and by just copying the text) but I’m struggling to understand the format of Dynaweb and how to copy my success with Postman to Dynaweb.

Here is what I have in Postman:

Parameters (none show up):

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/c/4cd3cd8a1d867180a6ab5ad358b3994e8f669b73.png)

Authorization:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/3/23d30e8f6b824e8fbbb6931933562c00914dde1c.png)

Headers:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/4/740b88b8586cb993a2ccf7aa73cd2ba6e6c3f41e.png)

Body:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/b/abb0b63a15fdd30b0aea2f0203df5327106080c7.png)

And my code snippet:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/c/3c0446b379d4c1b82afcb0061fd88d5c4b4cf16e.png)

Here is what I have in Dynamo (I get the same error with every way I try to add the JSON file or text to the body of the request: “the content-type of the first file of the request must be application/json”) Any ideas on how to fixt this? @Radu_Gidei , do you have any input on what I might be doing wrong?

 ![UpdateJSONvalues1_2021-10-18_05-15-19CroppedRedacted](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/8/d8a900c424842042632a81c94a96a0ce6a3aee3a.png)

---

<div class="post-metadata">

**Author:** ![Radu\_Gidei](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Radu\_Gidei](https://forum.dynamobim.com/u/Radu_Gidei)\
**Post date:** [October 21, 2021, 1:49pm UTC](https://forum.dynamobim.com/t/dynaweb-inserting-a-json-value-into-the-body-of-http-api-request/69426/2 "2021-10-21T13:49:19Z")

</div>

Hi,

Thanks for all the info! Would you be able to use Postman to generate a C# snippet for that request please ? Might help track down what the issue is.  
Cheers,  
Radu

---

<div class="post-metadata">

**Author:** ![bcallU58HA](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@bcallU58HA](https://forum.dynamobim.com/u/bcallU58HA)\
**Post date:** [October 21, 2021, 8:05pm UTC](https://forum.dynamobim.com/t/dynaweb-inserting-a-json-value-into-the-body-of-http-api-request/69426/3 "2021-10-21T20:05:50Z")

</div>

Sure thing!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/b/4b8d94e25adfb65992e767ca6e53c03a3d75d45e.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/9/29fa1d407b2e0a3e562e71ce27636fce59004cef.png)
