# HTTP request post

**URL:** <https://forum.uipath.com/t/http-request-post/781978>\
**Category:** Activities\
**Tags:** http-request, http, studio, webapi, activities\
**Created:** [November 25, 2024, 4:54pm UTC](https://forum.uipath.com/t/http-request-post/781978 "2024-11-25T16:54:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![duaine.b](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/duaine.b/32/366843_2.png) [@duaine.b](https://forum.uipath.com/u/duaine.b)\
**Post date:** [November 25, 2024, 4:54pm UTC](https://forum.uipath.com/t/http-request-post/781978/1 "2024-11-25T16:54:13Z")

</div>

I have a post request in postman that looks something like the below.

I’ve used the code snippet tool in postman and imported it to the HTTP activity but it doesn’t give me the parameters. i need “loanNote”: “Test” to be present as this is will differ per attempt.

I am able to post the below and get the desired results.

I’m using the HTTP Request activity to post but i’m not sure how to recreate this in the activity. do i need to use the parameter tabs and just add each or do i need to create this assign it to variable and add this to the body section of parameters?

Get-ChildItem -Filter \*.zip | ForEach-Object {  
Expand-Archive -Path $_.FullName -DestinationPath ($_.DirectoryName + "" + $\_.BaseName)  
}

---

<div class="post-metadata">

**Author:** ![adiijaiin](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/adiijaiin/32/523523_2.png) [@adiijaiin](https://forum.uipath.com/u/adiijaiin)\
**Post date:** [November 25, 2024, 5:54pm UTC](https://forum.uipath.com/t/http-request-post/781978/2 "2024-11-25T17:54:18Z")

</div>

Hi @duaine.b

You can write that in the body property under options.  
If you are trying to pass in JSON format as mentioned above. Please store the text in a notepad file.  
Use a Read Text File activity, store the data in a variable and then pass it to the Body Property.

This should work.  
Thanks

---

<div class="post-metadata">

**Author:** ![duaine.b](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/duaine.b/32/366843_2.png) [@duaine.b](https://forum.uipath.com/u/duaine.b)\
**Post date:** [November 26, 2024, 9:28am UTC](https://forum.uipath.com/t/http-request-post/781978/3 "2024-11-26T09:28:03Z")

</div>

> [@adiijaiin](#):
>
> You can write that in the body property under options.  
> If you are trying to pass in JSON format as mentioned above. Please store the text in a notepad file.  
> Use a Read Text File activity, store the data in a variable and then pass it to the B

@adiijaiin - thanks for the message this has resolved the issue

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [November 29, 2024, 9:29am UTC](https://forum.uipath.com/t/http-request-post/781978/4 "2024-11-29T09:29:01Z")

</div>

Closed on November 29, 2024, 9:29am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
