> For the complete documentation index, see [llms.txt](https://docs.tpi.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tpi.dev/guide/client-management/client-export-import.md).

# Client Export/Import

<mark style="color:green;">**Path: Client Management > Client Export/Import**</mark>

In this section, you can find instructions on how to import and export the client data.

![](/files/RrFCzAQHky1zxi2yYA6B)

### Export Clients <a href="#z8hdm0kzu3i1" id="z8hdm0kzu3i1"></a>

To export the client date, click **Export** to export the .json file of the desired client.

![](/files/17W1E0rOLmcgDpyjWoBI)

### Import Clients <a href="#ig5jyrio09" id="ig5jyrio09"></a>

In this section, you can find instructions on how to import the client data, along with important notes.

#### **Import Process**

1. To import client-related data, click **Import**, select the desired JSON file, and click **Upload**.

{% hint style="danger" %}
Do not modify the content of the JSON file; altering the original data may cause system errors.
{% endhint %}

![](/files/ThPJ2clBCqAEpaJLy8Or)

2. Click **Upload** to automatically compare the new data with the existing data. If the data is new, the **Data status** will display as *Add*; if the data is unchanged, the **Data status** will display as *Repeat*.

![](/files/83FPv9E4mRpnYJxeWX3l)

3. If **Lack API** appears, it indicates that some APIs on the system have been deleted or modified. You can either check the option "**It has been confirmed that if the API used by the client is missing, it will be ignored. If it is not checked, the import operation will not be processed. Please re-import after correction**", or manually add the missing APIs to the system.

![](/files/iqyvcvvvrpCDWU4Edojf)

4. Click **Covered all** to display the addition or overwrite status of each setting, allowing the user to confirm the changes.

![](/files/gA9y9pDU9h2Xsjdcvhmh)

5. A warning prompt displaying the message “**Confirm cover all**” will pop up. Click **Confirm** to overwrite all.

<div align="left"><img src="/files/g0KQu0PuuQImITSVPsFN" alt="" width="489"></div>

6. The **Data status** will change from red to black.

![](/files/cyimXiPWTDEQNidcNInY)

7. Click **Confirm** to successfully import the client data.

![](/files/D2DqKFBmvBI6Mp2ARSFr)

#### **Important Notes**

The criteria for identifying duplicate data are listed below:

1. **Client Info:** Based on the client account.

* The API status used by DP, such as application authorization API and login authorization API, will be transferred.
* **Cannot add or overwrite in the following cases:**
  * If the code or name is duplicated, it cannot be added or overwritten.
  * If the host list's name or IP is duplicated with other data, it cannot be overwritten.
  * If the security levels are different, it cannot be overwritten.
* **Will not be overwritten in the following cases:** Passwords and the number of password errors will not be overwritten.

2. **Group:** Based on the group code.

* **Cannot overwrite in the following cases:**
  * The name is duplicated with an existing group.
  * The state cannot be added.

3. **Authorization Scope:** Based on the API scope code.

* **Cannot overwrite in the following cases:**
  * The name is duplicated with an existing API scope.
  * There are more than 186 APIs.
  * The state cannot be added.

4. **Authentications:** Based on the authentication method code.

* **Cannot overwrite in the following cases:**
  * The name is duplicated with an existing authentication name.
  * The state cannot be added.

5. **Security Level:** Based on the security level code.

* **Cannot overwrite in the following cases:**
  * The name is duplicated with an existing security level.
  * The state cannot be added.

6. **RDB Connection:** Based on the connection name.

* The **HikariConfig Data Source Properties** will use new values for overwriting.

7. If the data status displays in red, it indicates that the data is not processed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tpi.dev/guide/client-management/client-export-import.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
