Dynamic HTTP Methods

Allow users to select the HTTP method (GET, POST, PUT, etc.) when configuring actions.

Overview

By default, action types have a fixed HTTP method. However, you can make the HTTP method dynamic, allowing users to choose which method to use when they add the action to their workflow.

This is useful when creating generic API action types that can handle multiple operations.

Step 1: Set HTTP Method to Dynamic

In your action type's Action settings, change the HTTP Method dropdown from a specific method to Dynamic.

HTTP Method set to Dynamic

Step 2: Add a Form Field for Method Selection

Add a new form field to let users select the HTTP method:

  1. Go to the Form section of your action type
  2. Click Add Field
  3. Configure the field with these settings:
SettingValue
TypeSelect
Nameform__http_method
LabelHTTP Method
Default valuePOST (or your preferred default)

For the Options, use the following JSON array:

1
2
3
4
5
6
7
[
  { "value": "get", "label": "GET" },
  { "value": "post", "label": "POST" },
  { "value": "put", "label": "PUT" },
  { "value": "patch", "label": "PATCH" },
  { "value": "delete", "label": "DELETE" }
]

Form field configuration for HTTP method

Step 3: Publish Your Changes

After configuring both settings, publish your action type. Users will now see an HTTP Method dropdown when adding this action to their workflows.

How It Works

When the HTTP Method is set to Dynamic, Embed Workflow looks for a form field named form__http_method. The value selected by the user in this field determines which HTTP method is used when the action executes.

Note

The form field name must be exactly form__http_method for this feature to work.