Skip to main content
Version: 3

Creating copy of a Layout using an API

You can also use an API to create a copy of a Layout 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 Layout.

      Refer to the table given below for the API Endpoint URLs.

      API NameEndpoint URLExample
      Copy Schema<application URL>/rest/entities/copy

      /schemas/<Type of the Layout>/<ID of the

      Layout>

      •
      - Where, Type can be extracted
      from the URL of the Layout. For
      example, the Type for a DatabaseLayout can be seen as db in the
      following URL:
      https://hostURL.com/#configure/
      layouts/dbprojectId=all&type=
      layouts&activity=db



      - You can retrieve the ID from the
       Action > View menu of the
      respective Layout.
      https://hostURL.com/rest/

      entities/copy/schemas/db

      /19216800100616032615

      6458789963
    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 > Cookieparameter of the REST client.

  4. In the Body of the REST client, enter the name and description for the copy of Layout in key value pair as shown in the example below:

    {“entityName”:”Layout_Copy”, “description”:”Copy_of_Layout”}

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