POST
/v2/mgmt/flow/import

Import a flow within a project utilizing a management key.

This endpoint is used to import a flow to a project. The request items for the flow and screen this endpoint can be received from the export flow endpoint.

See Also

  • See Flow Overview for more information on flows.
  • See Manage Flows for more information on managing (export, import, delete, disable, enable) flows.

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v2/mgmt/flow/import

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

flowobject

Used by managementservice snapshots - make sure not to break compatibility

Status codeDescription
200OK
curl -X POST "https://api.descope.com/v2/mgmt/flow/import" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <ProjectId:ManagementKey>" \
  -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"
      ]
    }
  }
}'
Was this helpful?