# Actions

#### The action object

Both Schedule automations and Event automations require actions. Actions are passed as JSON objects in an array. See the [scheduled-automations](https://developers.couchdrop.io/administration/automations/scheduled-automations "mention") nad [event-automations](https://developers.couchdrop.io/administration/automations/event-automations "mention") docs to see how to include them when configuring the automations .

Here is an example of what an action object looks like.

```json
[
    {
        "type":"<action_type>",
        ....
    }
]
```

Actions have variable params, which can be found below. An example of a copy action is here

```
{
    "type":"copy",
    "copy_to":"/new/destination/"
}
```

#### Available Action Types

As of writing this document, we support the following action types.&#x20;

| Action Type  | Description                            |
| ------------ | -------------------------------------- |
| webhook      | Fire a webhook of to a remote endpoint |
| rename       | Rename the file                        |
| delete       | Delete the file                        |
| copy         | Copy/duplicate the file                |
| move         | Move the file to a new location.       |
| email        | Send an email notification             |
| compress     | Compress the file                      |
| decompress   | Decompress the file                    |
| unarchive    | Unarchive the file                     |
| pgp\_encrypt | Encrypt the file with PGP              |
| pgp\_decrypt | Decrypt a file encrypted with PGP      |
