Supported Formats

json

Errors

Code Description
401 Unauthorized
500 Server error

Examples

POST /api/recipes
{
  "name": "Send mail",
  "code": "{\"number\":0,\"provider\":\"clock\",\"name\":\"timer\",\"as\":\"timer\",\"keyword\":\"trigger\",\"dynamicPickListSelection\":{},\"toggleCfg\":{},\"input\":{\"interval\":\"5\",\"start_at\":\"\"},\"block\":[{\"number\":1,\"provider\":\"email\",\"name\":\"send_mail\",\"as\":\"send_mail\",\"keyword\":\"action\",\"dynamicPickListSelection\":{},\"toggleCfg\":{},\"input\":{},\"uuid\":\"cd865246-ece7-4188-845e-33d021664be3\"}],\"uuid\":\"c4b0778d-5a23-4c52-a5bb-4a99ae5d25ae\"}",
  "config": "[{\"keyword\":\"application\",\"name\":\"clock\",\"provider\":\"clock\"},{\"keyword\":\"application\",\"name\":\"email\",\"provider\":\"email\"}]"
}
200
{
  "success": true,
  "id": 116
}

Params

Param name Description
recipe
optional

Validations:

  • Must be a Hash

recipe[name]
optional

Name of the recipe

Validations:

  • Must be String

recipe[code]
optional

JSON string representing the recipe lines

Validations:

  • Must be String

recipe[config]
optional

JSON string representing the connection lines

Validations:

  • Must be String