> For the complete documentation index, see [llms.txt](https://docs.skyone.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skyone.cloud/english/skyone-studio/how-to/rest-module-output-consolidation.md).

# REST Module Output Consolidation

REST module output consolidation is a feature that groups all attributes into a single object called **"data"**, simplifying the process of passing and handling information in Skyone Studio. This means you can add or modify fields without updating the entire integration flow, and there's no need to pass each parameter individually.

### Practical example

In the flow below, note that we have a **REST module** followed by a **Return module**:

<figure><img src="https://2493694111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQPcfIOA6Tl2Bmk6CdV2O%2Fuploads%2FCBjchU9GUj2C8OvXlULa%2FEA3C2866-3E26-4F54-AE18-8DD91FC9C138.png?alt=media&amp;token=5a35d43a-fd84-4114-9190-5c5be1b866bc" alt=""><figcaption><p>Flow example with REST module</p></figcaption></figure>

By default, we pass the fields in the **REST** module separately. Therefore, in the “**Return**” **module** we will see the attributes ungrouped, one by one:

<figure><img src="https://2493694111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQPcfIOA6Tl2Bmk6CdV2O%2Fuploads%2F5TCpUS8kom3bzQY09tLq%2FREST-consolidation4.gif?alt=media&amp;token=e03952b3-7a87-40b2-b3a1-0b99a1ecce8a" alt=""><figcaption></figcaption></figure>

But if you activate the consolidation of the REST module's output, all the attributes will be sent as “**data**”:

<figure><img src="https://2493694111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQPcfIOA6Tl2Bmk6CdV2O%2Fuploads%2FCaLomc2MatjFbWD35LdO%2F328C8FA3-2BB2-464E-8368-5B585133214A.png?alt=media&amp;token=c9e05f04-c890-44f7-8d96-d72dfb67a5a3" alt=""><figcaption><p>The fields were grouped into "data"</p></figcaption></figure>

### How to activate consolidation

To consolidate the output of a REST module, follow these steps:

1. Click on “**Edit**” in the REST module.
2. Activate the “**Consolidate response**” option.

<figure><img src="https://2493694111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQPcfIOA6Tl2Bmk6CdV2O%2Fuploads%2FR48gKN0VPoACesVWI28S%2FA58A5656-D7E6-4EDE-A1D6-AA73025BD484.png?alt=media&amp;token=5fa22444-4676-4a26-bec0-b44298e7c582" alt=""><figcaption></figcaption></figure>

3. Click on “**Next**” to test the module.
4. Finalize your changes by clicking “**Save**”.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.skyone.cloud/english/skyone-studio/how-to/rest-module-output-consolidation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
