Importing flow services

Import a Flow service and all its dependencies into a particular project.

Before you begin

To import flow services into a project, you need an admin access. Only admins have the necessary permissions for this activity. If you do not have admin access but hold a custom role, verify that you have the write access specifically for the project where you intend to import flow services.

About this task

Complete the following steps to import a flow service. If you import a flow service with the same name as an existing flow service in the tenant, then it overwrites the existing flow service. If a flow service with the same name does not exist, then a new flow service is created.

Procedure

  1. In a REST client platform, add the details of the tenant where you want to import a flow service.
    
    //In case of Instance API key 
    Headers:
    {
    "x-instance-api-key": "instance_api_key"
    }
     
    // In case of MCSP or ISV token
    Headers:
    {
    "Authorization": "mcsp_or_isv_token"
    }
    
    Body: 
    	{
         recipe: <zip_file_binary>
    	}
  2. Make a POST request to the flow service URL.

    URL Syntax - <domain>/apis/v1/rest/projects/:project/flow-import

    In this URL request, /:project is the name of the project where you want to import the flow service.

    If the request is successful, you receive the response code for success.
    {
     output : {
    			"name": "<flow_name>",
    			"assemblyType": "<assembly_type>",
    			"serviceFullName": "<service_FullName>",
    			"project_uid": "<project_uid>",
    			"tenant_uid": "<tenant_uid>"
    			}
    }