Creating copy of a Mapping using an API
- Ashhad Alam
- Rohan Dhanwade (Deactivated)
Owned by Ashhad Alam
You can also use an API to create a copy of a Mapping by following the steps given below.
- Go to the REST client and do the followings.
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
- Enter the method as PUT.
- Copy cookies from the logged-in user session by navigating as follows:
- From the logged-in user session in the browser, open Developer Tools, and select Network menu.
- In the Adeptia Connect activity manage page, select any activity, for example, an Excel Layout.
- In the Developer Tools > Network page, select any URL that appears.
- Select the Headers tab.
- Scroll down to the Request Headers section.
- Within the Request Headers section, copy the entire content available in the Cookie parameter.
- Paste the copied cookies into Headers > Cookie parameter of the REST client.
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”}- Send the request.
If you receive the response code as “200”, it implies that you’ve successfully created the copy of the Mapping.
You may be interested in...