Skip to main content
Version: 25.03

Edit flow

Enterprise

This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.

Endpoint​

/i/flows/edit

Overview​

Updates an existing flow schema.

Authentication​

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions​

Requires flows Create permission for this endpoint.

Request Parameters​

Same schema fields as Flows - Create, plus:

ParameterTypeRequiredDescription
_idStringYesExisting flow ID.

Examples​

/i/flows/edit?
app_id=64f5c0d8f4f7ac0012ab3456&
_id=64f5c0d8f4f7ac0012ab3456_67bd31c92e7f0b0012ab4567&
name=Signup to Purchase (Updated)&
type=events&
start={"event":"signup"}&
end={"event":"purchase"}&
period=30days

Response​

Success Response​

{
"result": "Success"
}

Response Fields​

FieldTypeDescription
resultStringSuccess when flow schema update is applied.

Error Responses​

  • 400
{
"result": "Missing request parameter: _id"
}
  • 400
{
"result": "Flow not found for update."
}
  • 400
{
"result": "data base error. Please check logs."
}

Behavior​

  • Parses and normalizes same fields as create.
  • Sets status = edited and updates status_changed timestamp.
  • Updates by _id and app_id.
  • Logs flows_edited on success.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.flow_schemasEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.
countly.systemlogsAudit trailContains system action records used by this endpoint for audit output or audit writes.