Skip to main content
Version: 24.05

Toggle flow disabled status

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/toggleDisabled

Overview​

Enables or disables a single flow.

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​

ParameterTypeRequiredDescription
app_idStringYesTarget app ID.
_idStringYesFlow ID to update.
disabledBooleanNotrue disables the flow. Any other value, or leaving it out, enables it.
api_keyStringConditionalRequired if auth_token is not provided.
auth_tokenStringConditionalRequired if api_key is not provided.

Examples​

Disable a flow​

/i/flows/toggleDisabled?
app_id=64f5c0d8f4f7ac0012ab3456&
_id=64f5c0d8f4f7ac0012ab3456_67bd31c92e7f0b0012ab4567&
disabled=true

Re-enable a flow​

/i/flows/toggleDisabled?
app_id=64f5c0d8f4f7ac0012ab3456&
_id=64f5c0d8f4f7ac0012ab3456_67bd31c92e7f0b0012ab4567&
disabled=false

Response​

Success Response​

{
"result": "Success"
}

Response Fields​

FieldTypeDescription
resultStringSuccess when the flow is updated.

Error Responses​

  • 400
{
"result": "Missing request parameter: _id"
}
  • 400
{
"result": "data base error. Please chack logs."
}

Behavior​

  • Updates the disabled field of the flow with the given _id and app_id.
  • Sets disabled=true only when the value is boolean true or the string "true"; otherwise sets false.
  • A disabled flow cannot be calculated until it is enabled again.
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.flow_schemasEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.