---
title: "Using POST Method With REST Service Integration"
slug: "using-post-method-rest-service-integration"
description: "This document shows how to setup and use a REST service integration with POST. The included example shows how to create a flow that makes a call with POST that uses and interprets Json data. "
tags: ["REST Service", "integration", "POST"]
updated: 2025-06-25T13:45:00Z
published: 2025-06-25T13:45:00Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using POST Method With REST Service Integration

## Overview

A POST method is used to send data to a server via API. It also creates subordinate resources, such as a file in a directory. REST Services are a folder that can hold any number of REST methods.

For more information, please visit the following article on [Rest Service Integration](/v9/docs/rest-service-integration-overview).

## Example

In this example, a REST Service will be created with the POST method that sends new account data to a server. For confirmation, a Flow will then be created to send a JSON object with a custom Request Body**.**

1. In a Designer Project, click CREATE DATATYPES/INTEGRATION. Select **External Services**and click **Add REST Service.**Creating a REST integration via Add REST Service Integration within the Integrations Folder is possible. It is advised to create the integration within a Designer Folder instead. This allows the user more mobility with the project, should they have to export/import the integration to another instance, and ease access. 

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-08-06_10h14_12.png)
2. In the **Add REST Service** window, define the **Service Name**and enter "https://postman-echo.com/" for the **Service URL.**Click SAVE INTEGRATION.When defining the Service URL, make sure the Ping Result is 200 to indicate a successful connection to the Service URL.

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-08-06_10h15_39.png)
3. Click within the Rest Service folder****and select **Add Method to Service**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-08-06_10h17_22.png)
4. In the New REST Service Method, enter a Name for the method and type "post" in the **URL (Relative to Base)** field. Click the drop-down list for **HTTP Method** and select **POST**.
5. Select **JSON**for the **Content-Type** field and **Specify Below (Use {} for variables)** for the **Request Body Format**field.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-08-06_10h21_38.png)
6. Copy and paste the following code into the**Request Body**field. This code will create inputs within the REST service for users to submit account information.

```json
{
"accountID": {AccountID},
"dob": {DateOfBirth}
}
```
7. Click OK****to save and close.
8. In the Designer Project, click CREATE FLOW and select **Flow**. Name the Flow and click CREATE.
9. Navigate to **Integrations > REST Services > [REST SERVICE]**in the steps toolbox and select the POST method step.
10. From the **Properties**panel for the REST service, set Constant values for the **Account ID** and **Date of Birth**fields. Connect the **Done**and **Error**paths to the **End**step. Click **Save**to save changes to the Flow.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_09h43_32.png)

---

## Debug

1. Select **Debug** from the top panel of the Flow Designer. Click START DEBUGGING.
2. To view the REST service results, select the **REST Service**step, select **Execution 1**, and select **View Input/Output Data.**If the Flow runs successfully, it will return the expected data return, a Status Code of 200, and the data of the Headers from the POST call.

![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_09h44_36.png)
