**Title:** 09 UiPath HTTP Request – JSON Request Body Tutorial | Send Dynamic JSON Data

Learn how to configure and send a JSON request body using the new UiPath HTTP Request activity. In this tutorial, we will use an Assign activity to create JSON data dynamically and pass it to an API using the POST method.

**In this video:**
- Understanding JSON request bodies
- Creating a JSON string using an Assign activity
- Working with JSON data in UiPath
- Configuring the HTTP Request activity
- Setting Request Body Type to Text
- Configuring Content-Type as application/json
- Sending JSON data using the POST method
- Executing the API request and validating the response

**Practical API Details**

**API:** DummyJSON Products API

**Endpoint:**
`https://dummyjson.com/products/add`

**HTTP Method:** POST

**Request Headers:**
- Content-Type: application/json
- Accept: application/json

**Request Body:**
```json
{
"title": "UiPath Automation Course",
"price": 499,
"category": "education",
"description": "Learn API automation using UiPath HTTP Request"
}
```

**UiPath HTTP Request Configuration:**
- Request Body Type: Text
- Content Type: application/json
- Text Body: JsonBody

**Expected Status Code:** 201 Created

Note: DummyJSON simulates product creation for testing and learning purposes. The submitted product is not permanently stored.

#UiPath #APIAutomation #automatewithrakesh

Recommended