# Egnyte

> Manage files, folders, sharing links and comments; search files and read users and groups.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/egnyte

## Actions

### Copy file or folder

Copy a file or folder, picked by its path, to a destination path. The original stays where it was.

**Inputs**

- File or folder path (`path`, text, required): File or folder path.
- Destination (`destination`, text, required): Destination.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Create comment

Add a comment to a file by its path. Returns the new comment's ID.

**Inputs**

- Path (`path`, text, required): Path.
- Body (`body`, text, required): Body.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "id": "example",
    "message": "example"
  }
}
```

### Create folder

Create a new folder at the given path in Egnyte. Returns the new folder's details.

**Inputs**

- File or folder path (`path`, text, required): File or folder path.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "folder_id": "example",
    "path": "example"
  }
}
```

### Create link

Create a shared link to a file or folder by its path, or an upload link to a folder, with an optional expiry date. Returns the new link's URL. No email is sent.

**Inputs**

- Path (`path`, text, required): Path.
- Type (`type`, text, required): Type. One of: `file`, `folder`, `upload`.
- Expiry date (`expiry_date`, date): Expiry date.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "links": []
  }
}
```

### Delete comment

Delete a comment by its ID.

**Inputs**

- Comment ID (`comment_id`, text, required): Comment ID.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Delete file or folder

Delete a file or folder by its path. A deleted folder takes everything inside it with it.

**Inputs**

- File or folder path (`path`, text, required): File or folder path.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Delete link

Delete a shared link by its ID, so it no longer opens. The file or folder it pointed to is kept.

**Inputs**

- Link ID (`link_id`, text, required): Link ID.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Download file

Download a file by its path, returning its contents.

**Inputs**

- File or folder path (`path`, text, required): File or folder path.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```

### Get comment

Get one comment by its ID, returning its text, author, time and the file it is on.

**Inputs**

- Comment ID (`comment_id`, text, required): Comment ID.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "id": "example",
    "message": "example"
  }
}
```

### Get file or folder

Get the details of a file or folder by its path. For a folder, it can also list what the folder contains, a page at a time.

**Inputs**

- File or folder path (`path`, text, required): File or folder path.
- List content (`list_content`, true/false): List content.
- Count (`count`, number): Count. From 1 to 1000.
- Offset (`offset`, number): Offset. At least 0.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "files": [],
    "folder_id": "example",
    "folders": [],
    "group_id": "example",
    "is_folder": false,
    "path": "example"
  }
}
```

### Get group

Get one group by its ID, returning its name and members.

**Inputs**

- Group (`group_id`, text, required): Group ID.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Get link

Get one shared link by its ID, returning its URL, the file or folder it shares, its type and its expiry date.

**Inputs**

- Link ID (`link_id`, text, required): Link ID.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Get user

Get one Egnyte user by their ID, returning their name, username, email address, role and whether they are active.

**Inputs**

- User (`target_user_id`, text, required): User ID.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### List comments

List the comments on a file by its path, optionally between two times. Returns one page; use count and offset for the next page.

**Inputs**

- File or folder path (`file`, text, required): File or folder path.
- Count (`count`, number): Count. From 1 to 100.
- Offset (`offset`, number): Offset. At least 0.
- Start time (`start_time`, date and time): Start time.
- End time (`end_time`, date and time): End time.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "count": 1,
    "notes": [],
    "offset": 1,
    "total_results": 1
  }
}
```

### List groups

List the groups in your Egnyte domain, returning each group's name and ID. Returns one page; use start index and count for the next page.

**Inputs**

- Start index (`start_index`, number): Start index. At least 1.
- Count (`count`, number): Count. From 1 to 100.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "itemsPerPage": 1,
    "resources": [],
    "startIndex": 1,
    "totalResults": 1
  }
}
```

### List links

List the shared links in your Egnyte domain, returning each link's ID. Returns one page; use count and offset for the next page.

**Inputs**

- Count (`count`, number): Count. From 1 to 100.
- Offset (`offset`, number): Offset. At least 0.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "count": 1,
    "links": []
  }
}
```

### List users

List the users in your Egnyte domain, returning each user's name, username, email address and role. Returns one page; use start index and count for the next page.

**Inputs**

- Start index (`start_index`, number): Start index. At least 1.
- Count (`count`, number): Count. From 1 to 100.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "itemsPerPage": 1,
    "resources": [],
    "startIndex": 1,
    "totalResults": 1
  }
}
```

### Move file or folder

Move a file or folder, picked by its path, to a destination path.

**Inputs**

- File or folder path (`path`, text, required): File or folder path.
- Destination (`destination`, text, required): Destination.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {}
}
```

### Search files

Search files and folders by name and content, optionally within one folder, by type or by when they were modified. Returns up to 20 matches per page.

**Inputs**

- Query (`query`, text, required): Query.
- Folder (`folder`, text): Folder.
- Modified after (`modified_after`, date and time): Modified after.
- Modified before (`modified_before`, date and time): Modified before.
- Type (`type`, text): Type. One of: `FILE`, `FOLDER`.
- Count (`count`, number): Count. From 1 to 20.
- Offset (`offset`, number): Offset. At least 0.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "count": 1,
    "offset": 1,
    "results": [],
    "total_count": 1
  }
}
```

### Upload file

Upload a file to the given path in Egnyte, including the file name. Returns the uploaded file's details.

**Inputs**

- File or folder path (`path`, text, required): File or folder path.
- File (`file`, text, required): File.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "group_id": "example",
    "path": "example"
  }
}
```
