Create action type

Create action type

Endpoint

POST https://embedworkflow.com/api/v1/action_types

Request Body

name string, required

Name of resource

description string, optional

Description of action type

type string, required

Type of action

on boolean, optionaldefault: true

Enable or disable the resource.

params_draft string, optional

HTTP parameters as key:value pairs, one per line

headers_draft string, optional

HTTP headers as key:value pairs, one per line

url_draft string, optional

HTTP url

http_method_draft string, optional

HTTP method

code_draft string, optional

JavaScript code snippt

publish boolean, optional

Whether or not you want to publish on create

form_draft array, optional

Form field configuration

response_data_schema_draft array, optional

Data schema configuration

groups array, optional

User permission groups. Only available to users with admin role.

icon_draft object, optional

Icon configuration

Response

Returns created.

Errors

  • 422 - unprocessable entity