Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 1.42 KB

File metadata and controls

68 lines (52 loc) · 1.42 KB
layout toc title slug
docs-api
toc-api-admin.html
PUT /flow/:id
url label
/docs/api/admin
admin
url label
/docs/api/admin/methods
methods
update flow

Update a flow in the active configuration. A flow is represented as a tab within the editor.

All nodes in the existing flow are stopped before the new flow configuration is started.

Requires permission: flows.write

Headers

Header Value
Authorization Bearer [token] - if authentication is enabled
Content-type application/json

Arguments

Path Component Description
id The id of the flow to update, or global

The request body must be a single flow configuration object.

For a normal flow: {% highlight json %} { "id": "91ad451.f6e52b8", "label": "Sheet 1", "nodes": [ ], "configs": [ ] } {% endhighlight %}

For the global flow: {% highlight json %} { "id": "global", "configs": [ ], "subflows": [ ] } {% endhighlight %}

Response

Status Code Reason Response
204 Success none
400 Bad request An Error response
401 Not authorized none

Returns the id of the flow.

{% highlight json %} {"id":"5a04dce3.a5fb24"} {% endhighlight %}