# pCloud

> Manage files and folders, inspect revisions and checksums, and watch folder contents for changes.

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

## Actions

### Copy file

Copy file.

**Inputs**

- Fileid (`fileid`, text, required): Fileid. At least 0.
- Tofolderid (`tofolderid`, text, required): Tofolderid. At least 0.
- Toname (`toname`, text): Toname.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```

### Copy folder

Copy folder.

**Inputs**

- Folderid (`folderid`, text, required): Folderid. At least 0.
- Tofolderid (`tofolderid`, text, required): Tofolderid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```

### Create folder

Create folder.

**Inputs**

- Folderid (`folderid`, text, required): Folderid. At least 0.
- Name (`name`, text, required): Name.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```

### Delete file

Delete file.

**Inputs**

- Fileid (`fileid`, text, required): Fileid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```

### Delete folder

Delete folder.

**Inputs**

- Folderid (`folderid`, text, required): Folderid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```

### Delete public link

Delete public link.

**Inputs**

- Linkid (`linkid`, text, required): Linkid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "result": 1
  }
}
```

### Ensure folder

Ensure folder.

**Inputs**

- Folderid (`folderid`, text, required): Folderid. At least 0.
- Name (`name`, text, required): Name.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```

### Get checksum

Get checksum.

**Inputs**

- Fileid (`fileid`, text, required): Fileid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "md5": "example",
    "metadata": {
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1,
    "sha1": "example",
    "sha256": "example"
  }
}
```

### Get download link

Get download link.

**Inputs**

- Fileid (`fileid`, text, required): Fileid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "expires": "example",
    "hosts": [],
    "path": "example",
    "result": 1
  }
}
```

### Get file

Get file.

**Inputs**

- Fileid (`fileid`, text, required): Fileid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```

### Get file history

Get file history.

**Inputs**

- Fileid (`fileid`, text, required): Fileid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "entries": [],
    "result": 1
  }
}
```

### Get user

Get user.

**Inputs**: None.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "email": "example",
    "quota": 1,
    "result": 1,
    "usedquota": 1,
    "userid": 1
  }
}
```

### List changes

List changes.

**Inputs**

- Diffid (`diffid`, text): Diffid. At least 0.
- Limit (`limit`, number): Limit. From 1 to 1000.
- After (`after`, date and time): After.
- Last (`last`, number): Last. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "diffid": 1,
    "entries": [],
    "result": 1
  }
}
```

### List folder

List folder.

**Inputs**

- Folderid (`folderid`, text, required): Folderid. At least 0.
- Recursive (`recursive`, true/false): Recursive.
- Nofiles (`nofiles`, true/false): Nofiles.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "contents": [],
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```

### List public links

List public links.

**Inputs**: None.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "publinks": [],
    "result": 1
  }
}
```

### List revisions

List revisions.

**Inputs**

- Fileid (`fileid`, text, required): Fileid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "result": 1,
    "revisions": []
  }
}
```

### List shares

List shares.

**Inputs**: None.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "requests": {
      "incoming": [],
      "outgoing": []
    },
    "result": 1,
    "shares": {
      "incoming": [],
      "outgoing": []
    }
  }
}
```

### List trash

List trash.

**Inputs**

- Folderid (`folderid`, text): Folderid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "contents": [],
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```

### Rename file

Rename file.

**Inputs**

- Fileid (`fileid`, text, required): Fileid. At least 0.
- Toname (`toname`, text): Toname.
- Tofolderid (`tofolderid`, text): Tofolderid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```

### Rename folder

Rename folder.

**Inputs**

- Folderid (`folderid`, text, required): Folderid. At least 0.
- Toname (`toname`, text): Toname.
- Tofolderid (`tofolderid`, text): Tofolderid. At least 0.

**Outputs**

- `data` (object): P Cloud response data.

**Example output**

```json
{
  "data": {
    "metadata": {
      "created": "example",
      "fileid": 1,
      "folderid": 1,
      "id": "example",
      "isfolder": false,
      "modified": "example",
      "name": "example",
      "parentfolderid": 1
    },
    "result": 1
  }
}
```
