Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update admin api to reflect api changes #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docs/api/admin/methods/post/flows/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ The format of the request body will depend on the Node-RED API version being use

The `rev` property, if provided, should reflect the revision of flows that was returned by `GET /flows`.

The optional `credentials` property represents credentials for nodes.
The `credentials` property points to an object with node id as a key and an object with key-value pair of credentials as a value.

{% highlight json %}
{
"rev": "abc-123",
Expand All @@ -64,8 +67,18 @@ The `rev` property, if provided, should reflect the revision of flows that was r
"type": "tab",
"id": "396c2376.c693dc",
"label": "Sheet 1"
},
{
"type": "node-with-secret",
"id": "ae7b28e7.99fd38",
"label": "Secret"
}
]
],
"credentials": {
"ae7b28e7.99fd38": {
"password": "secret value"
}
}
}
{% endhighlight %}

Expand Down