Flows
Flows returned.
Flow returned by the list endpoint.
Name of the flow, unique within the tenant.
Type of the flow, e.g. userRegistration.
Number of steps the flow executes.
The stored flows file cannot be parsed.
GET /api/{tenantId}/admin/flows HTTP/1.1
Host: app.neostore.cloud
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"name": "text",
"type": "text",
"stepCount": 1
}
]Appends a new flow to server/flows.yml. Step types are validated against the step types registered by the loaded extensions, and the resulting configuration is parsed back before it is written, so a malformed step is rejected instead of breaking the tenant.
Authorization
Requires tenant.configuration.flow:write scope.
Request body to create a flow.
Name of the flow. Must start with a lowercase letter and contain only letters, digits, hyphens or underscores, from 2 to 50 characters.
Type of the flow. Defaults to userRegistration when omitted.
Flow created.
Full definition of a flow, returned by the get/create/save endpoints.
Name of the flow.
Type of the flow.
Name, flow type or a step is invalid.
A flow with this name already exists, or the stored flows file cannot be parsed.
POST /api/{tenantId}/admin/flows HTTP/1.1
Host: app.neostore.cloud
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"name": "text",
"type": null,
"steps": [
{
"type": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
}{
"name": "text",
"type": "text",
"steps": [
{
"type": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
}Flow returned.
Full definition of a flow, returned by the get/create/save endpoints.
Name of the flow.
Type of the flow.
Flow not found.
The stored flows file cannot be parsed.
GET /api/{tenantId}/admin/flows/{name} HTTP/1.1
Host: app.neostore.cloud
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"name": "text",
"type": "text",
"steps": [
{
"type": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
}Request body to save an existing flow.
Type of the flow. Keeps the currently stored type when omitted.
Flow saved.
Full definition of a flow, returned by the get/create/save endpoints.
Name of the flow.
Type of the flow.
Flow type or a step is invalid.
Flow not found.
The stored flows file cannot be parsed.
PUT /api/{tenantId}/admin/flows/{name} HTTP/1.1
Host: app.neostore.cloud
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"type": null,
"steps": [
{
"type": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
}{
"name": "text",
"type": "text",
"steps": [
{
"type": "text",
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
}Flow deleted.
No content
The resulting configuration is invalid.
Flow not found.
The flow is still referenced by one or more layouts, or the stored flows file cannot be parsed.
DELETE /api/{tenantId}/admin/flows/{name} HTTP/1.1
Host: app.neostore.cloud
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Last updated

