Set persisted inputs of integration (blend)

POST /accounts/{account_externalid}/blends/{blend_guid}/set-persisted-inputs

Set persisted inputs of an integration (Blend). Persisted inputs are the settings of a Blend instance, for example a project which is selected in a CRM. Persisted inputs are stored and their value will be used on each run of the Blend.

Inputs must be defined as top inputs in the Blend, which means an Inputs block directly below the Start, Settings or Setup block.

Use the endpoints Get integration (Blend) or Get template to know which persisted top inputs have been defined for a given Blend.

The inputs have to be defined as being persisted in the Blend, you cannot set non-persisted inputs. If you want to set non-persisted inputs, use the endpoint Execute an integration (blend) and post the input values in that API call.

If an input is set as required, you cannot pass a null value.

You can also set the persisted inputs of a Bundle, this will set those inputs on the Blends inside the Bundle that have the specified inputs defined.

Path Parameters

Name Description Type
account_externalid string
blend_guid string

Body Parameters

Name Description Type
Inputs Input parameters json

Examples

{
  "input_param1": "some value",
  "input_param2": "some value"
}

Results

204


400

{
  "error": "This datasource cannot be deleted because it is in use.",
  "blends": [
    {
      "guid": "30f2f6c0-9443-11ea-9bae-a98aa7398bba",
      "name": "Widget #61",
      "description": null,
      "type": "widget",
      "status": "live",
      "state": "available",
      "run_mode": null,
      "has_setup": false,
      "setup_complete": true,
      "has_settings": false,
      "isbundle": false,
      "template_guid": null,
      "admin_url": "https://my-hub.admin.blendr.io/widgets/30f2f6c0-9443-11ea-9bae-a98aa7398bba",
      "icon": "/img/blendricon.png",
      "icon2": null,
      "icon3": null,
      "created_at": "2020-05-12T11:24:49.000000Z",
      "updated_at": "2020-05-12T11:24:49.000000Z",
      "last_run_at": null
    }
  ]
}