Open Web UI icon

Open Web UI

OpenWebUI

Actions304

Utils → format_code_api_v1_utils_code_format_post

AI-generated

Summary

Format source code by sending it to the Open Web UI service's /api/v1/utils/code/format endpoint using a POST request with the code in the JSON body.

Inputs

  • Skip Authentication — Whether to skip authentication for the request; defaults to false and uses Open WebUI Auth credentials otherwise.
  • Method (required) — The HTTP method to use; must be POST for this operation.
  • Media Type (required) — The media type of the request; fixed to application/json.
  • Request Body -> Code (required) — The source code string to be formatted, sent as JSON with property 'code'.

Output shape

a JSON object representing the formatted code response from the Open Web UI service

The response shape depends on the Open Web UI API but will contain the result of formatting the submitted source code. Authentication is required unless 'Skip Authentication' is set to true. Only POST method is supported for this operation.

Links

Discussion