Preview an API Action request

Render a draft request using sample values. No request is sent and no Action is created.

Opening the form or reading its schema does not run the tool.

Published example

Example JSON input
{
  "method": "POST",
  "url": "https://example.com/orders/{{order_id}}",
  "parameters": {
    "order_id": "123",
    "quantity": 2
  },
  "body_json": {
    "quantity": "{{quantity}}"
  }
}

Check your requirements

Edit the example below to check your requirements.

Input schema
{
  "$defs": {
    "JsonValue": {}
  },
  "additionalProperties": false,
  "properties": {
    "method": {
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE"
      ],
      "title": "Method",
      "type": "string"
    },
    "url": {
      "maxLength": 500,
      "minLength": 1,
      "title": "Url",
      "type": "string"
    },
    "parameters": {
      "maxProperties": 10,
      "patternProperties": {
        "^(?:\\d+|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|[a-zA-Z_][a-zA-Z0-9_]*)$": {
          "$ref": "#/$defs/JsonValue"
        }
      },
      "propertyNames": {
        "maxLength": 80
      },
      "title": "Parameters",
      "type": "object"
    },
    "headers": {
      "additionalProperties": {
        "maxLength": 500,
        "type": "string"
      },
      "maxProperties": 10,
      "propertyNames": {
        "maxLength": 80,
        "minLength": 1
      },
      "title": "Headers",
      "type": "object"
    },
    "query": {
      "additionalProperties": {
        "maxLength": 500,
        "type": "string"
      },
      "maxProperties": 10,
      "propertyNames": {
        "maxLength": 80,
        "minLength": 1
      },
      "title": "Query",
      "type": "object"
    },
    "body_json": {
      "anyOf": [
        {
          "additionalProperties": {
            "$ref": "#/$defs/JsonValue"
          },
          "propertyNames": {
            "maxLength": 80,
            "minLength": 1
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Body Json"
    }
  },
  "required": [
    "method",
    "url"
  ],
  "title": "ActionRequestInput",
  "type": "object"
}

Tool version: public-action-request-v1