Creating copy of a Mapping using an API

You can also use an API to create a copy of a Mapping by following the steps given below.

  1. Go to the REST client and do the followings.
    1. Enter the Endpoint URL of the API to be used for copying a Mapping. 
      Refer to the table given below for the API Endpoint URLs.

      API Name

      Endpoint URL

      Example

      Copy Mapping

      <application URL>/rest/entities/mappings/copy/<ID of the Mapping>

      • You can retrieve the ID from the Action > View menu of the respective Mapping.

      https://hostURL.com/rest/entities/mappings/copy/192168001006160326311623000017

    2. Enter the method as PUT.
  2. Copy cookies from the logged-in user session by navigating as follows:
    1. From the logged-in user session in the browser, open Developer Tools, and select Network menu.
    2. In the Adeptia Connect activity manage page, select any activity, for example, an Excel Layout.
    3. In the Developer Tools > Network page, select any URL that appears.
    4. Select the Headers tab.
    5. Scroll down to the Request Headers section.
    6. Within the Request Headers section, copy the entire content available in the Cookie parameter.
  3. Paste the copied cookies into Headers > Cookie parameter of the REST client.
  4. In the Body of the REST client, enter the name and description for the copy of Mapping in key value pair as shown in the example below:

    {“entityName”:”Mapping_Copy”,
    “description”:”Copy_of_Mapping”}

  5. Send the request.
    If you receive the response code as “200”, it implies that you’ve successfully created the copy of the Mapping.