# Daemon API
## Daemon List
> see [Dashboard API](./api_dashboard.md#get-overview-info)
## Add
```http
POST /api/service/remote_service
```
#### Request Body
```json
{
"ip": "10.0.0.16",
"port": 24446,
"prefix": "",
"remarks": "MiPad",
"apiKey": "db9516063699446bb95fba51f08603"
}
```
#### Response
```json
{
"status": 200,
"data": "499e1012a21443278a7ec63a3a95860b", // Added Daemon ID
"time": 1718594177859
}
```
## Delete
```http
DELETE /api/service/remote_service
```
#### Query Param
The parameters here are **URL Query parameters**, which are presented in JSON format for better illustration.
```js
{
uuid: string; // Daemon ID
}
```
#### Response
```json
{
"status": 200,
"data": true,
"time": 1718594177859
}
```
## Try Connect Daemon
```http
GET /api/service/link_remote_service
```
#### Query Param
The parameters here are **URL Query parameters**, which are presented in JSON format for better illustration.
```js
{
uuid: string; // Daemon ID
}
```
#### Response
```json
{
"status": 200,
"data": true,
"time": 1718594177859
}
```
## Update Daemon Connect Config
```http
PUT /api/service/remote_service
```
#### Query Param
```js
{
uuid: string; // Daemon ID
}
```
#### Request Body
```json
{
"uuid": "e31986e43c254107951dea97026a3741",
"ip": "162.2.xx.xx",
"port": 24444,
"prefix": "",
"available": false,
"remarks": "My Node",
"apiKey": ""
}
```
#### Response
```json
{
"status": 200,
"data": true,
"time": 1718594177859
}
```