Auto formattingedit

Console can help you format requests. Select one or more requests that you want to format, click the action icon (wrench), and select Auto indent.

For example, you might have a request that is formatted like this:

Console close-up

Console adjusts the JSON body of the request to apply the indents.

Console close-up

If you select Auto indent on a request that is already well formatted, Console collapses the request body to a single line per document. This is helpful when working with Elasticsearch’s bulk APIs.