Update Status

Update Flow status by ID

PATCH https://biometridon.polygon.pt/api/flows/:id/status

This endpoint allows you to update the flow status field.

Path Parameters

Name
Type
Description

id

string

ID of the flow to get

Headers

Name
Type
Description

Content-Type

string

application/json

Authorization

string

Authentication user token

Request Body

Name
Type
Description

active

boolean

Active status

{
  "data": {
    "name": "flow 2",
    "stepsOrdered": [
      "5f06dd39a89fd30bd4671862"
    ],
    "settingsId": "5f06dd3c198040265c1fc732",
    "clientId": "5f06dd360d2a954da80c098f",
    "forAllClients": null,
    "active": true,
    "created_at": "2020-07-10T10:51:20.599Z",
    "updated_at": "2020-07-10T10:51:20.599Z",
    "id": "5f084828ed1bb82d64ee7b44"
  },
  "meta": {
    "message": "Flow Updated with success."
  },
  "status": true
}

Last updated

Was this helpful?