Update a flow
Updates the configuration of an existing flow, including name, description, execution logic, conditions, and target settings. Returns the updated resource (200) after a successful update.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Language code for text fields supporting multiple languages. When creating or updating resources, this specifies the language for the provided text values. When retrieving resources, this determines which language variant the multilingual text fields return. Accepted values: 'en-EN' (English), 'es-ES' (Spanish), 'pt-BR' (Portuguese), 'ca-ES' (Catalan), 'eu-ES' (Basque). The default is 'es-ES' if not provided.
en-EN, es-ES, pt-BR, ca-ES, eu-ES Path Parameters
The unique identifier of the organization
24^[0-9a-f]{24}$Unique identifier for the flow to update
24^[0-9a-f]{24}$Body
Flow name. At least one language key is required; each value between 1 and 512 characters.
Flow description. At least one language key is required; each value between 1 and 512 characters.
Waiting time in minutes. Must be between 10 and 1440.
10 <= x <= 1440Indicates if the flow is enabled. PUT expects a complete definition; this field is required.
Initial text message. Mandatory in PUT. Send null to clear; otherwise, an object with at least one language key; each value between 1 and 512 characters.
Success text message. Mandatory in PUT. Send null to clear; otherwise, object with at least one language key; each value between 1 and 512 characters.
Error text message. Mandatory in PUT. Send null to clear; otherwise, an object with at least one language key; each value between 1 and 512 characters.
24^[0-9a-f]{24}$Response
Flow updated successfully. The response contains the updated resource.
Flow detail as returned by GET flow by id. Organization is implied by the route /v1/organizations/{organization_id}/flows/{flow_id}. Target workspaces/groups are normalized in target.ids (hexadecimal strings of MongoDB ObjectId).
24^[0-9a-f]{24}$Resolved to Accept-Language when multilingual
Resolved to Accept-Language when multilingual
session, workspace Waiting time in minutes
Execution destination: type selects the scope; ids list Workspace _id values, Workspace group _id values, or Reporting Group _id (empty when type is ALL_WORKSPACES)
Omitted or empty when the flow has no conditions
Linked microservice ID when present
Resolved to Accept-Language when multilingual
Resolved to Accept-Language when multilingual
Resolved to Accept-Language when multilingual
Present when metrics are calculated for this flow