# HTTP Request API - INT parametr

**URL:** <https://forum.uipath.com/t/http-request-api-int-parametr/417314>\
**Category:** Help\
**Tags:** activities, webapi\
**Created:** [April 22, 2022, 12:35pm UTC](https://forum.uipath.com/t/http-request-api-int-parametr/417314 "2022-04-22T12:35:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Add\_Bddd](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/add_bddd/32/178043_2.png) [@Add\_Bddd](https://forum.uipath.com/u/Add_Bddd)\
**Post date:** [April 22, 2022, 12:35pm UTC](https://forum.uipath.com/t/http-request-api-int-parametr/417314/1 "2022-04-22T12:35:59Z")

</div>

Hello,

I have problem with HTTP request - API requires to some values send as INT instead of String.

It is working if im using object as HTTP request body ex:

```auto
"{
 'customerId':15552334,
 'parentId':'927764',
}"

```

So look:  
cusomerId as int - without quotes  
parametrId as string - within quoutes  
And it`s fine, api work correctly, but i want to have multiple customer/parent ids and api calls so i want use it as variable instead. Can create JSON object from variables, looking like above?

I cant use parametrs in HTTP request properties - unable to select parametr type other than string, and if i simply put parentId(which should be int) in quotes as string - API simply return error.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/5/e/65ea940025991694427e4feb5e4985b861cff154.png)

---

<div class="post-metadata">

**Author:** ![ptrobot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ptrobot/32/175001_2.png) [@ptrobot](https://forum.uipath.com/u/ptrobot)\
**Post date:** [April 22, 2022, 1:25pm UTC](https://forum.uipath.com/t/http-request-api-int-parametr/417314/2 "2022-04-22T13:25:33Z")

</div>

You can generate the json string with string concatenation or String.Format:

```auto
jsonString = String.Format("{{ 'customerId':{0}, 'parentId':'{1}'}}", customerId, parentId)

```

---

<div class="post-metadata">

**Author:** ![Add\_Bddd](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/add_bddd/32/178043_2.png) [@Add\_Bddd](https://forum.uipath.com/u/Add_Bddd)\
**Post date:** [April 25, 2022, 10:35am UTC](https://forum.uipath.com/t/http-request-api-int-parametr/417314/3 "2022-04-25T10:35:08Z")

</div>

Thank you @ptrobot

---

<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:** [April 28, 2022, 10:35am UTC](https://forum.uipath.com/t/http-request-api-int-parametr/417314/4 "2022-04-28T10:35:40Z")

</div>

Closed on April 28, 2022, 10:35am UTC

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