# Morgen

> Read Morgen calendars, manage events, and keep Morgen tasks up to date.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/morgen

## Actions

### Complete a task

Complete a task.

**Inputs**

- ID (`id`, text, required): The Morgen task ID.
- Occurrence start (`occurrence_start`, date and time): Occurrence start.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

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

### Create a tag

Make a Morgen tag with a name and optional color.

**Inputs**

- Name (`name`, text, required): Tag name.
- Color (`color`, text): Hex color such as #A8D5BA.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

```json
{
  "data": {
    "color": "example",
    "id": "example",
    "name": "example",
    "updated": "example"
  }
}
```

### Create a task

Create a task.

**Inputs**

- Title (`title`, text, required): Title.
- Description (`description`, text): Description.
- Due (`due`, date and time): Due date and time.
- Priority (`priority`, number): Priority. From 0 to 9.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

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

### Create an event

Create an event.

**Inputs**

- Account (`account_id`, text, required): Account id.
- Calendar (`calendar_id`, text, required): Calendar id.
- Title (`title`, text, required): Title.
- Start (`start`, date and time, required): Start time, converted to UTC.
- Duration (`duration`, text, required): Duration such as PT30M for 30 minutes.
- Description (`description`, text): Description.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

```json
{
  "data": {
    "data": {
      "event": {
        "accountId": "example",
        "calendarId": "example",
        "duration": "example",
        "id": "example",
        "start": "example",
        "timeZone": "example",
        "title": "example"
      }
    }
  }
}
```

### Delete a tag

Remove a Morgen task tag.

**Inputs**

- Tag (`tag_id`, text, required): Choose a Morgen tag.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

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

### Delete a task

Delete a task.

**Inputs**

- ID (`id`, text, required): The Morgen task ID.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

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

### Delete an event

Delete an event.

**Inputs**

- Account (`account_id`, text, required): Account id.
- Calendar (`calendar_id`, text, required): Calendar id.
- ID (`id`, text, required): Id.
- Series update mode (`series_update_mode`, text): Series update mode. One of: `single`, `all`, `future`.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

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

### Get a tag

Read one Morgen task tag.

**Inputs**

- Tag (`tag_id`, text, required): Choose a Morgen tag.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

```json
{
  "data": {
    "color": "example",
    "id": "example",
    "name": "example",
    "updated": "example"
  }
}
```

### Get a task

Get a task.

**Inputs**

- ID (`id`, text, required): Id.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

```json
{
  "data": {
    "data": {
      "task": {
        "created": "example",
        "deleted": true,
        "id": "example",
        "status": "example",
        "title": "example",
        "updated": "example"
      }
    }
  }
}
```

### Get an event

Get an event.

**Inputs**

- ID (`id`, text, required): Id.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

```json
{
  "data": {
    "data": {
      "event": {
        "accountId": "example",
        "calendarId": "example",
        "duration": "example",
        "id": "example",
        "start": "example",
        "timeZone": "example",
        "title": "example"
      }
    }
  }
}
```

### List calendar events

List calendar events.

**Inputs**

- Account (`account_id`, text, required): Account id.
- Calendar IDS (`calendar_ids`, list, required): Calendar ids.
- Start (`start`, date and time, required): Start.
- End (`end`, date and time, required): End.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

```json
{
  "data": {
    "data": {
      "events": [
        {
          "accountId": "example",
          "calendarId": "example",
          "duration": "example",
          "id": "example",
          "start": "example",
          "timeZone": "example",
          "title": "example"
        }
      ]
    }
  }
}
```

### List calendars

List calendars.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

```json
{
  "data": {
    "data": {
      "calendars": [
        {
          "accountId": "example",
          "id": "example",
          "name": "example"
        }
      ]
    }
  }
}
```

### List tags

List Morgen task tags or look for tags changed since a specified time.

**Inputs**

- Limit (`limit`, number): Maximum number of tags to return. At least 1.
- Updated after (`updated_after`, date and time): Only return tags changed after this time.

**Outputs**

- `data` (list): The response from Morgen.

**Example output**

```json
{
  "data": [
    {
      "color": "example",
      "id": "example",
      "name": "example",
      "updated": "example"
    }
  ]
}
```

### List tasks

List tasks.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100.
- Updated after (`updated_after`, date and time): Updated after.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

```json
{
  "data": {
    "data": {
      "tasks": [
        {
          "created": "example",
          "deleted": true,
          "id": "example",
          "status": "example",
          "title": "example",
          "updated": "example"
        }
      ]
    }
  }
}
```

### Move a task

Move a task.

**Inputs**

- ID (`id`, text, required): The Morgen task ID.
- Previous ID (`previous_id`, text): Previous id.
- Parent ID (`parent_id`, text): Parent id.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

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

### Reopen a task

Reopen a task.

**Inputs**

- ID (`id`, text, required): The Morgen task ID.
- Occurrence start (`occurrence_start`, date and time): Occurrence start.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

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

### Update a tag

Change a tag's name or color.

**Inputs**

- Tag (`tag_id`, text, required): Choose a Morgen tag.
- Name (`name`, text): New tag name.
- Color (`color`, text): Hex color such as #A8D5BA.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

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

### Update a task

Update a task.

**Inputs**

- ID (`id`, text, required): The Morgen task ID.
- Title (`title`, text): Title.
- Description (`description`, text): Description.
- Due (`due`, date and time): Due date and time.
- Priority (`priority`, number): Priority. From 0 to 9.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

```json
{
  "data": {
    "data": {
      "task": {
        "created": "example",
        "deleted": true,
        "id": "example",
        "status": "example",
        "title": "example",
        "updated": "example"
      }
    }
  }
}
```

### Update an event

Update an event.

**Inputs**

- Account (`account_id`, text, required): Account id.
- Calendar (`calendar_id`, text, required): Calendar id.
- ID (`id`, text, required): Id.
- Title (`title`, text): Title.
- Description (`description`, text): Description.
- Series update mode (`series_update_mode`, text): Series update mode. One of: `single`, `all`, `future`.

**Outputs**

- `data` (object): The response from Morgen.

**Example output**

```json
{
  "data": {
    "accountId": "example",
    "calendarId": "example",
    "duration": "example",
    "id": "example",
    "start": "example",
    "timeZone": "example",
    "title": "example"
  }
}
```
