# HTTP Request - Body

**URL:** <https://forum.uipath.com/t/http-request-body/2824986>\
**Category:** Studio\
**Tags:** variables-management, question, studio, webapi, activities\
**Created:** [May 20, 2025, 8:31am UTC](https://forum.uipath.com/t/http-request-body/2824986 "2025-05-20T08:31:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gagan\_AP](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@Gagan\_AP](https://forum.uipath.com/u/Gagan_AP)\
**Post date:** [May 20, 2025, 8:31am UTC](https://forum.uipath.com/t/http-request-body/2824986/1 "2025-05-20T08:31:52Z")

</div>

Hello,

I’m using a POST method to create a Test Data Queue, and I’ve verified it works perfectly through Postman. Here’s a snapshot for reference.

 ![Screenshot 2025-05-20 135257](https://global.discourse-cdn.com/uipath/original/4X/9/6/8/968501252eccc4d95b28d8bfb978ff0490b7ae69.png)

I’m trying to implement the same functionality in UiPath Studio using the HTTP Request activity. However, I’m running into an error when assigning a value to the ContentJsonSchema (Body). I suspect it might be related to string escaping, but I’m not entirely sure.

Here’s the value I’m trying to use for ContentJsonSchema : "{"G\_Column11":"","G\_Column22":"","G\_Column33":"","$schema":"[http://json-schema.org/draft-07/schema#\“}”](http://json-schema.org/draft-07/schema#%5C%22%7D%22)

 ![The image shows an HTTP Request Wizard with configured parameters for sending a POST request, including authorization headers and JSON schema content for data queues in UiPath Orchestrator. (Captioned by AI)](https://global.discourse-cdn.com/uipath/original/4X/d/a/b/dab04b634782fc72e54e126a8f8b77521dbf80f3.jpeg)

Error Message :

 ![Screenshot 2025-05-20 134727](https://global.discourse-cdn.com/uipath/original/4X/f/8/8/f882dee5632e7bb2e9b576386ddddb358428694e.png)

Am I missing something here? Any suggestions or insights would be appreciated!

Thanks.

---

<div class="post-metadata">

**Author:** ![J0ska](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/j0ska/32/111328_2.png) [@J0ska](https://forum.uipath.com/u/J0ska)\
**Post date:** [May 20, 2025, 8:50am UTC](https://forum.uipath.com/t/http-request-body/2824986/2 "2025-05-20T08:50:13Z")

</div>

I suppose quotes in the string should be replaced by double quotes.  
i.e. each \" should be \“”  
Cheers

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [May 20, 2025, 8:51am UTC](https://forum.uipath.com/t/http-request-body/2824986/3 "2025-05-20T08:51:12Z")

</div>

Hi,

In [Vb.net](http://Vb.net) (UiPath) a quotation mark must be express as two quotation mark.  
The following document may help you.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/8/c/f/8cfabef2ad3d1fe18909e19c11b066ef81e17b83.png)

> **[String Basics - Visual Basic](https://learn.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-features/strings/string-basics)**
>
> Learn more about: String Basics in Visual Basic

Regards

---

<div class="post-metadata">

**Author:** ![Darshan\_Sable](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/darshan_sable/32/553593_2.png) [@Darshan\_Sable](https://forum.uipath.com/u/Darshan_Sable)\
**Post date:** [May 20, 2025, 8:52am UTC](https://forum.uipath.com/t/http-request-body/2824986/4 "2025-05-20T08:52:23Z")

</div>

@Gagan_AP

Replace quotes with double quotes like below

```auto
"{""G_Column11"":"""",""G_Column22"":"""",""G_Column33"":"""",""$schema"":""http://json-schema.org/draft-07/schema#""}"

```

---

<div class="post-metadata">

**Author:** ![ashokkarale](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashokkarale/32/474400_2.png) [@ashokkarale](https://forum.uipath.com/u/ashokkarale)\
**Post date:** [May 20, 2025, 8:52am UTC](https://forum.uipath.com/t/http-request-body/2824986/5 "2025-05-20T08:52:25Z")

</div>

@Gagan_AP,

Try escaping \ with \\

**How to Escape:**

To represent a backslash, you need to double it. For example, `\` (one backslash) is interpreted as a special character (like a new line or a tab), while `\\\\` (two backslashes) represents a literal backslash in the string.

**Examples:**

- “C:\\Users” would be interpreted as “C:\Users”.
- “This is a test \"test\"” would be interpreted as “This is a test "test"”.

---

<div class="post-metadata">

**Author:** ![Gagan\_AP](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@Gagan\_AP](https://forum.uipath.com/u/Gagan_AP)\
**Post date:** [May 20, 2025, 9:29am UTC](https://forum.uipath.com/t/http-request-body/2824986/6 "2025-05-20T09:29:47Z")

</div>

Thanks @Darshan_Sable .  
I have tried this but the API Body required – "{"G\_Column11":"","G\_Column22":"","G\_Column33":"","$schema":"[http://json-schema.org/draft-07/schema#\“}”](http://json-schema.org/draft-07/schema#%5C%22%7D%22)

This Format only, else it’s throwing an null value error.

 ![image](https://global.discourse-cdn.com/uipath/original/4X/e/1/3/e1394e12ddbd8ed4d162d1aff9bada9b4ab21ca4.png)

---

<div class="post-metadata">

**Author:** ![Gagan\_AP](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@Gagan\_AP](https://forum.uipath.com/u/Gagan_AP)\
**Post date:** [May 20, 2025, 9:31am UTC](https://forum.uipath.com/t/http-request-body/2824986/7 "2025-05-20T09:31:08Z")

</div>

Hey @ashokkarale , Thanks for this. Can you please send me and final string, bit confused while adding the backslashes.

initial string = "{"G\_Column11":"","G\_Column22":"","G\_Column33":"","$schema":"[http://json-schema.org/draft-07/schema#\“}”](http://json-schema.org/draft-07/schema#%5C%22%7D%22)

---

<div class="post-metadata">

**Author:** ![ashokkarale](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashokkarale/32/474400_2.png) [@ashokkarale](https://forum.uipath.com/u/ashokkarale)\
**Post date:** [May 20, 2025, 10:29am UTC](https://forum.uipath.com/t/http-request-body/2824986/8 "2025-05-20T10:29:16Z")

</div>

@Gagan_AP,

Pass it like this:

```auto
"""G_Column11"":"""",""G_Column22"":"""",""G_Column33"":"""",""$schema"":""http://json-schema.org/draft-07/schema#\""}"""

```

 ![The image shows a flowchart involving three steps: assigning a JSON string to a variable, deserializing the JSON, and logging a message, all within a UiPath automation sequence. (Captioned by AI)](https://global.discourse-cdn.com/uipath/original/4X/0/0/f/00fec6f49369201ba7befeda564c6467a6b05e6a.png)

 ![A screenshot displays the contents of a JSON string variable and its corresponding object representation in an "Immediate" debug output window, highlighting empty values for 'G_Column11', 'G_Column22', and 'G_Column33', along with the schema reference. (Captioned by AI)](https://global.discourse-cdn.com/uipath/original/4X/4/2/c/42cdda964b74209d8b1b834bc5f90d83cca368b0.png)

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [May 21, 2025, 10:24am UTC](https://forum.uipath.com/t/http-request-body/2824986/9 "2025-05-21T10:24:36Z")

</div>

@ashokkarale

> [@ashokkarale](#):
>
> `"""G_Column11"":"""",""G_Column22"":"""",""G_Column33"":"""",""$schema"":""http://json-schema.org/draft-07/schema#\""}"""`

You missed the opening `{` curly bracket in your code block snippet 😃

---

<div class="post-metadata">

**Author:** ![ashokkarale](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashokkarale/32/474400_2.png) [@ashokkarale](https://forum.uipath.com/u/ashokkarale)\
**Post date:** [May 21, 2025, 11:12am UTC](https://forum.uipath.com/t/http-request-body/2824986/10 "2025-05-21T11:12:16Z")

</div>

Thank you @loginerror for noticing that.. Just hope @Gagan_AP got it working 🤔

---

<div class="post-metadata">

**Author:** ![Jon\_Smith](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jon_smith/32/523286_2.png) [@Jon\_Smith](https://forum.uipath.com/u/Jon_Smith)\
**Post date:** [May 21, 2025, 11:36am UTC](https://forum.uipath.com/t/http-request-body/2824986/11 "2025-05-21T11:36:49Z")

</div>

ooof guys, doing it this way leads to so many errors, as shown in this thread with character escapes and missing symbols when built manually.

Its so much easier than this now, just ask a GPT or Autopilot to make you the class by telling them the payload you have and that you want a class in C# to serialize into the payload.

You’ll get something like this.

```auto
using System.Text.Json.Serialization;

public class Payload
{
    [JsonPropertyName("G_Column11")]
    public string G_Column11 { get; set; }

    [JsonPropertyName("G_Column22")]
    public string G_Column22 { get; set; }

    [JsonPropertyName("G_Column33")]
    public string G_Column33 { get; set; }

    [JsonPropertyName("$schema")]
    public string Schema { get; set; }

    // Parameterless constructor
    public Payload()
    {
        G_Column11 = string.Empty;
        G_Column22 = string.Empty;
        G_Column33 = string.Empty;
        Schema = string.Empty;
    }

    // Constructor to populate all fields
    public Payload(string column11, string column22, string column33, string schema)
    {
        G_Column11 = column11;
        G_Column22 = column22;
        G_Column33 = column33;
        Schema = schema;
    }
}

```

Then in order to use the code its super easy.

```auto
var payload = new Payload("", "", "", "http://json-schema.org/draft-07/schema#");
string jsonString = JsonSerializer.Serialize(payload);

```

Please please stop messing around trying to construct JSON strings manually.  
Build a class and serialize them, its super accessible to do with AI helping you make a class.
