POST
/v2/mgmt/flow/import

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
flowobject

Used by managementservice snapshots - make sure not to break compatibility

curl -X POST "https://api.descope.com/v2/mgmt/flow/import" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "flow": {
      "flowId": "string",
      "metadata": {
        "name": "string",
        "description": "string",
        "componentsVersion": "string",
        "disabled": true,
        "fingerprint": true,
        "widget": true,
        "translation": {
          "enabled": true,
          "connectorId": "string",
          "sourceLanguage": "string",
          "targetLanguages": [
            "string"
          ]
        },
        "sharedInteractions": [
          {
            "id": "string",
            "type": "string",
            "label": "string",
            "icon": "string",
            "subType": "string"
          }
        ]
      },
      "contents": {},
      "screens": [
        {
          "screenId": "string",
          "interactions": [
            {
              "id": "string",
              "type": "string",
              "label": "string",
              "icon": "string",
              "subType": "string"
            }
          ],
          "contents": {}
        }
      ],
      "references": {
        "connectors": {
          "property1": "string",
          "property2": "string"
        },
        "oauth": [
          "string"
        ],
        "roles": [
          "string"
        ],
        "userAttributes": [
          "string"
        ],
        "tenantAttributes": [
          "string"
        ]
      }
    }
  }'

OK

Was this helpful?