# Timely

> Log time and manage projects, clients, tags and planned tasks in Timely.

App · 29 actions. Web page: https://docs.lodol.com/docs/integrations/timely

## Actions

### Create a client

Add a client projects can belong to.

**Inputs**

- Name (`name`, text, required): The client's name.
- Color (`color`, text): A hex color such as `b72367`.
- Active (`active`, true/false): Whether the client is active. Set it off to archive the client.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "color": "example",
    "external_id": "example",
    "id": 1,
    "name": "example",
    "updated_at": "example"
  }
}
```

### Create a project

Add a project people can log time to.

**Inputs**

- Name (`name`, text, required): The project's name, unique for its client.
- Rate type (`rate_type`, text, required): One rate for everyone on the project, a rate per person, or not billable. One of: `project` (One rate for the project), `user` (A rate per person), `non-billable` (Not billable).
- Client (`client_id`, number): The client the project is for.
- Hourly rate (`hour_rate`, number): The hourly rate, when one rate applies to everyone. At least 0.
- Budget type (`budget_type`, text): Budget the project in hours or in money. One of: `H` (Hours), `M` (Money).
- Budget (`budget`, number): The budget amount. At least 0.
- Description (`description`, text): What the project is.
- Color (`color`, text): A hex color such as `67a3bc`.
- People (`user_ids`, list): The people who can log time to the project.
- Teams (`team_ids`, list): Teams whose members can log time to the project.
- Active (`active`, true/false): Whether the project is active. Set it off to archive the project.
- External ID (`external_id`, text): Your own reference for the project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "active": true,
    "billable": true,
    "budget": 1,
    "budget_type": "example",
    "client": {
      "active": true,
      "color": "example",
      "external_id": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    },
    "color": "example",
    "cost": {
      "amount": 1,
      "currency_code": "example",
      "formatted": "example",
      "fractional": 1
    },
    "created_at": 1,
    "description": "example",
    "duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "external_id": "example",
    "hour_rate": 1,
    "id": 1,
    "label_ids": [
      1
    ],
    "name": "example",
    "rate_type": "example",
    "team_ids": [
      1
    ],
    "updated_at": 1,
    "users": [
      {
        "hour_rate": 1,
        "user_id": 1
      }
    ]
  }
}
```

### Create a tag

Add a tag for time entries.

**Inputs**

- Name (`name`, text, required): The tag's name.
- Parent tag (`parent_id`, number): The tag this one sits under.
- Active (`active`, true/false): Whether the tag can be used. Set it off to archive the tag.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "children": [
      {
        "active": true,
        "id": 1,
        "name": "example",
        "parent_id": 1
      }
    ],
    "created_at": "example",
    "emoji": "example",
    "external_id": "example",
    "id": 1,
    "name": "example",
    "parent_id": 1,
    "sequence": 1,
    "updated_at": "example"
  }
}
```

### Delete a planned task

Delete a planned task for good.

**Inputs**

- Task ID (`task_id`, number, required): The planned task's ID.

**Outputs**

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

**Example output**

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

### Delete a project

Delete a project for good.

**Inputs**

- Project (`project_id`, number, required): The project.

**Outputs**

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

**Example output**

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

### Delete a tag

Delete a tag for good.

**Inputs**

- Tag (`tag_id`, number, required): The tag.

**Outputs**

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

**Example output**

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

### Delete a time entry

Delete a time entry for good.

**Inputs**

- Time entry ID (`time_entry_id`, number, required): The time entry's ID.

**Outputs**

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

**Example output**

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

### Get a client

Get one client.

**Inputs**

- Client (`client_id`, number, required): The client.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "color": "example",
    "external_id": "example",
    "id": 1,
    "name": "example",
    "updated_at": "example"
  }
}
```

### Get a person

Get one person's details, role and capacity.

**Inputs**

- Person (`timely_user_id`, number, required): The person.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "admin": true,
    "avatar": {
      "large": "example",
      "medium": "example",
      "timeline": "example"
    },
    "created_at": 1,
    "default_hour_rate": 1,
    "deleted": true,
    "email": "example",
    "external_id": "example",
    "id": 1,
    "name": "example",
    "role": {
      "id": 1,
      "name": "example"
    },
    "time_zone": "example",
    "updated_at": 1,
    "user_level": "example",
    "weekly_capacity": 1
  }
}
```

### Get a project

Get one project with its people, budget and totals.

**Inputs**

- Project (`project_id`, number, required): The project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "active": true,
    "billable": true,
    "budget": 1,
    "budget_type": "example",
    "client": {
      "active": true,
      "color": "example",
      "external_id": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    },
    "color": "example",
    "cost": {
      "amount": 1,
      "currency_code": "example",
      "formatted": "example",
      "fractional": 1
    },
    "created_at": 1,
    "description": "example",
    "duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "external_id": "example",
    "hour_rate": 1,
    "id": 1,
    "label_ids": [
      1
    ],
    "name": "example",
    "rate_type": "example",
    "team_ids": [
      1
    ],
    "updated_at": 1,
    "users": [
      {
        "hour_rate": 1,
        "user_id": 1
      }
    ]
  }
}
```

### Get a time entry

Get one time entry with its project, person and cost.

**Inputs**

- Time entry ID (`time_entry_id`, number, required): The time entry's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "billable": true,
    "billed": true,
    "cost": {
      "amount": 1,
      "currency_code": "example",
      "formatted": "example",
      "fractional": 1
    },
    "created_at": 1,
    "day": "example",
    "duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "estimated": true,
    "estimated_duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "external_id": "example",
    "forecast_id": 1,
    "from": "example",
    "hour_rate": 1,
    "id": 1,
    "label_ids": [
      1
    ],
    "locked": true,
    "note": "example",
    "project": {
      "client": {
        "active": true,
        "color": "example",
        "external_id": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      },
      "color": "example",
      "id": 1,
      "name": "example"
    },
    "sequence": 1,
    "state": {
      "id": 1,
      "name": "example"
    },
    "timer_started_on": 1,
    "timer_state": "example",
    "timer_stopped_on": 1,
    "to": "example",
    "uid": "example",
    "updated_at": 1,
    "user": {
      "avatar": {
        "large": "example",
        "medium": "example",
        "timeline": "example"
      },
      "email": "example",
      "id": 1,
      "name": "example"
    },
    "user_ids": [
      1
    ]
  }
}
```

### Get report totals

Total logged time and money per client and project for a date range.

**Inputs**

- From (`since`, date): The first day to include.
- To (`until`, date): The last day to include.
- People (`user_ids`, list): Only time these people logged.
- Projects (`project_ids`, list): Only time on these projects.
- Clients (`client_ids`, list): Only time for these clients.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "billable_duration": {
        "formatted": "example",
        "hours": 1,
        "minutes": 1,
        "seconds": 1,
        "total_hours": 1,
        "total_minutes": 1,
        "total_seconds": 1
      },
      "billed_cost": {
        "amount": 1,
        "currency_code": "example",
        "formatted": "example",
        "fractional": 1
      },
      "billed_duration": {
        "formatted": "example",
        "hours": 1,
        "minutes": 1,
        "seconds": 1,
        "total_hours": 1,
        "total_minutes": 1,
        "total_seconds": 1
      },
      "cost": {
        "amount": 1,
        "currency_code": "example",
        "formatted": "example",
        "fractional": 1
      },
      "duration": {
        "formatted": "example",
        "hours": 1,
        "minutes": 1,
        "seconds": 1,
        "total_hours": 1,
        "total_minutes": 1,
        "total_seconds": 1
      },
      "id": 1,
      "name": "example",
      "non_billable_duration": {
        "formatted": "example",
        "hours": 1,
        "minutes": 1,
        "seconds": 1,
        "total_hours": 1,
        "total_minutes": 1,
        "total_seconds": 1
      },
      "profit": {
        "amount": 1,
        "currency_code": "example",
        "formatted": "example",
        "fractional": 1
      },
      "profitability": 1,
      "projects": [
        {
          "cost": {
            "amount": 1,
            "currency_code": "example",
            "formatted": "example",
            "fractional": 1
          },
          "duration": {
            "formatted": "example",
            "hours": 1,
            "minutes": 1,
            "seconds": 1,
            "total_hours": 1,
            "total_minutes": 1,
            "total_seconds": 1
          },
          "id": 1,
          "name": "example"
        }
      ],
      "unbilled_cost": {
        "amount": 1,
        "currency_code": "example",
        "formatted": "example",
        "fractional": 1
      },
      "unbilled_duration": {
        "formatted": "example",
        "hours": 1,
        "minutes": 1,
        "seconds": 1,
        "total_hours": 1,
        "total_minutes": 1,
        "total_seconds": 1
      }
    }
  ]
}
```

### Get the connected person

Get the person whose Timely sign-in the connection uses.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "admin": true,
    "avatar": {
      "large": "example",
      "medium": "example",
      "timeline": "example"
    },
    "created_at": 1,
    "default_hour_rate": 1,
    "deleted": true,
    "email": "example",
    "external_id": "example",
    "id": 1,
    "name": "example",
    "role": {
      "id": 1,
      "name": "example"
    },
    "time_zone": "example",
    "updated_at": 1,
    "user_level": "example",
    "weekly_capacity": 1
  }
}
```

### List clients

List the workspace's clients.

**Inputs**

- Show (`show`, text): Active clients, archived clients or both. One of: `all`, `active`, `archived`.
- Offset (`offset`, number): How many results to skip, for the next page. At least 0.
- Limit (`limit`, number): How many results to return. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "active": true,
      "color": "example",
      "external_id": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    }
  ]
}
```

### List people

List the people in the workspace.

**Inputs**

- Offset (`offset`, number): How many results to skip, for the next page. At least 0.
- Limit (`limit`, number): How many results to return. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "active": true,
      "admin": true,
      "avatar": {
        "large": "example",
        "medium": "example",
        "timeline": "example"
      },
      "created_at": 1,
      "default_hour_rate": 1,
      "deleted": true,
      "email": "example",
      "external_id": "example",
      "id": 1,
      "name": "example",
      "role": {
        "id": 1,
        "name": "example"
      },
      "time_zone": "example",
      "updated_at": 1,
      "user_level": "example",
      "weekly_capacity": 1
    }
  ]
}
```

### List planned tasks

List planned tasks in a date range, by person, project or completion.

**Inputs**

- From (`since`, date): The first day to include.
- To (`upto`, date): The last day to include.
- Completed (`completed`, text): Only completed tasks, or only open ones. Leave empty for both. One of: `true` (Completed), `false` (Not completed).
- People (`user_ids`, list): Only tasks for these people.
- Projects (`project_ids`, list): Only tasks on these projects.
- Results per page (`per_page`, number): How many results to return, up to 5,000. From 1 to 5000.
- Page (`page`, number): Which page of results to return, from 1. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "completed": true,
      "completed_at": "example",
      "created_at": "example",
      "description": "example",
      "estimated_minutes": 1,
      "external_id": "example",
      "from": "example",
      "id": 1,
      "label_ids": [
        1
      ],
      "logged_duration": {
        "formatted": "example",
        "hours": 1,
        "minutes": 1,
        "seconds": 1,
        "total_hours": 1,
        "total_minutes": 1,
        "total_seconds": 1
      },
      "note": "example",
      "project": {
        "color": "example",
        "id": 1,
        "name": "example"
      },
      "title": "example",
      "to": "example",
      "updated_at": "example",
      "user": {
        "avatar": {
          "large": "example",
          "medium": "example",
          "timeline": "example"
        },
        "email": "example",
        "id": 1,
        "name": "example"
      },
      "users": [
        {
          "avatar": {
            "large": "example",
            "medium": "example",
            "timeline": "example"
          },
          "email": "example",
          "id": 1,
          "name": "example"
        }
      ]
    }
  ]
}
```

### List projects

List the workspace's projects, with their budgets and totals.

**Inputs**

- State (`state`, text): Active projects, archived projects or both. One of: `all`, `active`, `archived`.
- Updated after (`updated_after`, date and time): Only projects changed after this time.
- Offset (`offset`, number): How many results to skip, for the next page. At least 0.
- Limit (`limit`, number): How many results to return. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "account_id": 1,
      "active": true,
      "billable": true,
      "budget": 1,
      "budget_type": "example",
      "client": {
        "active": true,
        "color": "example",
        "external_id": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      },
      "color": "example",
      "cost": {
        "amount": 1,
        "currency_code": "example",
        "formatted": "example",
        "fractional": 1
      },
      "created_at": 1,
      "description": "example",
      "duration": {
        "formatted": "example",
        "hours": 1,
        "minutes": 1,
        "seconds": 1,
        "total_hours": 1,
        "total_minutes": 1,
        "total_seconds": 1
      },
      "external_id": "example",
      "hour_rate": 1,
      "id": 1,
      "label_ids": [
        1
      ],
      "name": "example",
      "rate_type": "example",
      "team_ids": [
        1
      ],
      "updated_at": 1,
      "users": [
        {
          "hour_rate": 1,
          "user_id": 1
        }
      ]
    }
  ]
}
```

### List tags

List the workspace's tags, with the tags under each.

**Inputs**

- Show (`filter`, text): Active tags, archived tags or both. One of: `all`, `active`, `archived`.
- Offset (`offset`, number): How many results to skip, for the next page. At least 0.
- Limit (`limit`, number): How many results to return. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "active": true,
      "children": [
        {
          "active": true,
          "id": 1,
          "name": "example",
          "parent_id": 1
        }
      ],
      "created_at": "example",
      "emoji": "example",
      "external_id": "example",
      "id": 1,
      "name": "example",
      "parent_id": 1,
      "sequence": 1,
      "updated_at": "example"
    }
  ]
}
```

### List teams

List the workspace's teams and their members.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "color": "example",
      "emoji": "example",
      "external_id": "example",
      "id": 1,
      "name": "example",
      "project_ids": [
        1
      ],
      "user_ids": [
        1
      ]
    }
  ]
}
```

### List time entries

List logged time for one day or a date range, by project or person.

**Inputs**

- Day (`day`, date): One day to list. Timely lists today when no dates are given.
- From (`since`, date): The first day of a range. Give the last day too.
- To (`upto`, date): The last day of a range. Give the first day too.
- Project (`project_id`, number): Only time on this project.
- Person (`person_id`, number): Only time this person logged.
- Sort by (`sort`, text): What to sort by. One of: `day`, `created_at` (Created at), `updated_at` (Updated at).
- Order (`order`, text): Sort order. One of: `desc` (Newest first), `asc` (Oldest first).
- Results per page (`per_page`, number): How many results to return, up to 5,000. From 1 to 5000.
- Page (`page`, number): Which page of results to return, from 1. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": [
    {
      "billable": true,
      "billed": true,
      "cost": {
        "amount": 1,
        "currency_code": "example",
        "formatted": "example",
        "fractional": 1
      },
      "created_at": 1,
      "day": "example",
      "duration": {
        "formatted": "example",
        "hours": 1,
        "minutes": 1,
        "seconds": 1,
        "total_hours": 1,
        "total_minutes": 1,
        "total_seconds": 1
      },
      "estimated": true,
      "estimated_duration": {
        "formatted": "example",
        "hours": 1,
        "minutes": 1,
        "seconds": 1,
        "total_hours": 1,
        "total_minutes": 1,
        "total_seconds": 1
      },
      "external_id": "example",
      "forecast_id": 1,
      "from": "example",
      "hour_rate": 1,
      "id": 1,
      "label_ids": [
        1
      ],
      "locked": true,
      "note": "example",
      "project": {
        "client": {
          "active": true,
          "color": "example",
          "external_id": "example",
          "id": 1,
          "name": "example",
          "updated_at": "example"
        },
        "color": "example",
        "id": 1,
        "name": "example"
      },
      "sequence": 1,
      "state": {
        "id": 1,
        "name": "example"
      },
      "timer_started_on": 1,
      "timer_state": "example",
      "timer_stopped_on": 1,
      "to": "example",
      "uid": "example",
      "updated_at": 1,
      "user": {
        "avatar": {
          "large": "example",
          "medium": "example",
          "timeline": "example"
        },
        "email": "example",
        "id": 1,
        "name": "example"
      },
      "user_ids": [
        1
      ]
    }
  ]
}
```

### Log time

Log time on a project, as hours or as a start and end time.

**Inputs**

- Project (`project_id`, number, required): The project the time is for. The person must be on the project.
- Date (`day`, date, required): The day the work was done.
- Hours (`hours_spent`, number): How long the work took, in hours (1.5 is an hour and a half). At least 0.
- Start time (`from_time`, time): When the work started.
- End time (`to_time`, time): When the work ended.
- Note (`note`, text): What the work was.
- Person (`person_id`, number): Who did the work. Leave empty for yourself.
- Tags (`tag_ids`, list): Tags for the entry.
- Billable (`billable`, true/false): Whether the time can be invoiced. Leave empty to follow the project.
- Billed (`billed`, true/false): Whether the time has already been invoiced, which locks it.
- External ID (`external_id`, text): Your own reference for the entry, such as a ticket number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "billable": true,
    "billed": true,
    "cost": {
      "amount": 1,
      "currency_code": "example",
      "formatted": "example",
      "fractional": 1
    },
    "created_at": 1,
    "day": "example",
    "duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "estimated": true,
    "estimated_duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "external_id": "example",
    "forecast_id": 1,
    "from": "example",
    "hour_rate": 1,
    "id": 1,
    "label_ids": [
      1
    ],
    "locked": true,
    "note": "example",
    "project": {
      "client": {
        "active": true,
        "color": "example",
        "external_id": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      },
      "color": "example",
      "id": 1,
      "name": "example"
    },
    "sequence": 1,
    "state": {
      "id": 1,
      "name": "example"
    },
    "timer_started_on": 1,
    "timer_state": "example",
    "timer_stopped_on": 1,
    "to": "example",
    "uid": "example",
    "updated_at": 1,
    "user": {
      "avatar": {
        "large": "example",
        "medium": "example",
        "timeline": "example"
      },
      "email": "example",
      "id": 1,
      "name": "example"
    },
    "user_ids": [
      1
    ]
  }
}
```

### Plan a task

Plan a task on a project for a date range.

**Inputs**

- Title (`title`, text, required): What the task is.
- Project (`project_id`, number, required): The project the task belongs to.
- Start date (`start_date`, date, required): The task's first day.
- End date (`end_date`, date, required): The task's last day.
- Person (`person_id`, number): The person the task is planned for.
- Estimate (minutes) (`estimated_minutes`, number): How long the task should take, in minutes. At least 0.
- Description (`description`, text): More about the task.
- Tags (`tag_ids`, list): Tags for the task.
- Completed at (`completed_at`, date and time): When the task was done. Set it to mark the task complete.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "completed": true,
    "completed_at": "example",
    "created_at": "example",
    "description": "example",
    "estimated_minutes": 1,
    "external_id": "example",
    "from": "example",
    "id": 1,
    "label_ids": [
      1
    ],
    "logged_duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "note": "example",
    "project": {
      "color": "example",
      "id": 1,
      "name": "example"
    },
    "title": "example",
    "to": "example",
    "updated_at": "example",
    "user": {
      "avatar": {
        "large": "example",
        "medium": "example",
        "timeline": "example"
      },
      "email": "example",
      "id": 1,
      "name": "example"
    },
    "users": [
      {
        "avatar": {
          "large": "example",
          "medium": "example",
          "timeline": "example"
        },
        "email": "example",
        "id": 1,
        "name": "example"
      }
    ]
  }
}
```

### Start a timer

Start the timer on a time entry.

**Inputs**

- Time entry ID (`time_entry_id`, number, required): The time entry's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "billable": true,
    "billed": true,
    "cost": {
      "amount": 1,
      "currency_code": "example",
      "formatted": "example",
      "fractional": 1
    },
    "created_at": 1,
    "day": "example",
    "duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "estimated": true,
    "estimated_duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "external_id": "example",
    "forecast_id": 1,
    "from": "example",
    "hour_rate": 1,
    "id": 1,
    "label_ids": [
      1
    ],
    "locked": true,
    "note": "example",
    "project": {
      "client": {
        "active": true,
        "color": "example",
        "external_id": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      },
      "color": "example",
      "id": 1,
      "name": "example"
    },
    "sequence": 1,
    "state": {
      "id": 1,
      "name": "example"
    },
    "timer_started_on": 1,
    "timer_state": "example",
    "timer_stopped_on": 1,
    "to": "example",
    "uid": "example",
    "updated_at": 1,
    "user": {
      "avatar": {
        "large": "example",
        "medium": "example",
        "timeline": "example"
      },
      "email": "example",
      "id": 1,
      "name": "example"
    },
    "user_ids": [
      1
    ]
  }
}
```

### Stop a timer

Stop the timer running on a time entry.

**Inputs**

- Time entry ID (`time_entry_id`, number, required): The time entry's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "billable": true,
    "billed": true,
    "cost": {
      "amount": 1,
      "currency_code": "example",
      "formatted": "example",
      "fractional": 1
    },
    "created_at": 1,
    "day": "example",
    "duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "estimated": true,
    "estimated_duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "external_id": "example",
    "forecast_id": 1,
    "from": "example",
    "hour_rate": 1,
    "id": 1,
    "label_ids": [
      1
    ],
    "locked": true,
    "note": "example",
    "project": {
      "client": {
        "active": true,
        "color": "example",
        "external_id": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      },
      "color": "example",
      "id": 1,
      "name": "example"
    },
    "sequence": 1,
    "state": {
      "id": 1,
      "name": "example"
    },
    "timer_started_on": 1,
    "timer_state": "example",
    "timer_stopped_on": 1,
    "to": "example",
    "uid": "example",
    "updated_at": 1,
    "user": {
      "avatar": {
        "large": "example",
        "medium": "example",
        "timeline": "example"
      },
      "email": "example",
      "id": 1,
      "name": "example"
    },
    "user_ids": [
      1
    ]
  }
}
```

### Update a client

Rename, recolor or archive a client.

**Inputs**

- Client (`client_id`, number, required): The client.
- Name (`name`, text): The client's name.
- Color (`color`, text): A hex color such as `b72367`.
- Active (`active`, true/false): Whether the client is active. Set it off to archive the client.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "color": "example",
    "external_id": "example",
    "id": 1,
    "name": "example",
    "updated_at": "example"
  }
}
```

### Update a planned task

Change a planned task, or mark it complete. Fields left empty keep their current value.

**Inputs**

- Task ID (`task_id`, number, required): The planned task's ID.
- Title (`title`, text): What the task is.
- Project (`project_id`, number): The project the task belongs to.
- Start date (`start_date`, date): The task's first day.
- End date (`end_date`, date): The task's last day.
- Person (`person_id`, number): The person the task is planned for.
- Estimate (minutes) (`estimated_minutes`, number): How long the task should take, in minutes. At least 0.
- Description (`description`, text): More about the task.
- Tags (`tag_ids`, list): Tags for the task.
- Completed at (`completed_at`, date and time): When the task was done. Set it to mark the task complete.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "completed": true,
    "completed_at": "example",
    "created_at": "example",
    "description": "example",
    "estimated_minutes": 1,
    "external_id": "example",
    "from": "example",
    "id": 1,
    "label_ids": [
      1
    ],
    "logged_duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "note": "example",
    "project": {
      "color": "example",
      "id": 1,
      "name": "example"
    },
    "title": "example",
    "to": "example",
    "updated_at": "example",
    "user": {
      "avatar": {
        "large": "example",
        "medium": "example",
        "timeline": "example"
      },
      "email": "example",
      "id": 1,
      "name": "example"
    },
    "users": [
      {
        "avatar": {
          "large": "example",
          "medium": "example",
          "timeline": "example"
        },
        "email": "example",
        "id": 1,
        "name": "example"
      }
    ]
  }
}
```

### Update a project

Change a project. People left out of a new list of people lose access to it.

**Inputs**

- Project (`project_id`, number, required): The project.
- Name (`name`, text): The project's name, unique for its client.
- Rate type (`rate_type`, text): One rate for everyone on the project, a rate per person, or not billable. One of: `project` (One rate for the project), `user` (A rate per person), `non-billable` (Not billable).
- Client (`client_id`, number): The client the project is for.
- Hourly rate (`hour_rate`, number): The hourly rate, when one rate applies to everyone. At least 0.
- Budget type (`budget_type`, text): Budget the project in hours or in money. One of: `H` (Hours), `M` (Money).
- Budget (`budget`, number): The budget amount. At least 0.
- Description (`description`, text): What the project is.
- Color (`color`, text): A hex color such as `67a3bc`.
- People (`user_ids`, list): The people who can log time to the project.
- Teams (`team_ids`, list): Teams whose members can log time to the project.
- Active (`active`, true/false): Whether the project is active. Set it off to archive the project.
- External ID (`external_id`, text): Your own reference for the project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "account_id": 1,
    "active": true,
    "billable": true,
    "budget": 1,
    "budget_type": "example",
    "client": {
      "active": true,
      "color": "example",
      "external_id": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    },
    "color": "example",
    "cost": {
      "amount": 1,
      "currency_code": "example",
      "formatted": "example",
      "fractional": 1
    },
    "created_at": 1,
    "description": "example",
    "duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "external_id": "example",
    "hour_rate": 1,
    "id": 1,
    "label_ids": [
      1
    ],
    "name": "example",
    "rate_type": "example",
    "team_ids": [
      1
    ],
    "updated_at": 1,
    "users": [
      {
        "hour_rate": 1,
        "user_id": 1
      }
    ]
  }
}
```

### Update a tag

Rename, move or archive a tag.

**Inputs**

- Tag (`tag_id`, number, required): The tag.
- Name (`name`, text): The tag's name.
- Parent tag (`parent_id`, number): The tag this one sits under.
- Active (`active`, true/false): Whether the tag can be used. Set it off to archive the tag.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "active": true,
    "children": [
      {
        "active": true,
        "id": 1,
        "name": "example",
        "parent_id": 1
      }
    ],
    "created_at": "example",
    "emoji": "example",
    "external_id": "example",
    "id": 1,
    "name": "example",
    "parent_id": 1,
    "sequence": 1,
    "updated_at": "example"
  }
}
```

### Update a time entry

Change a time entry. Fields left empty keep their current value.

**Inputs**

- Time entry ID (`time_entry_id`, number, required): The time entry's ID.
- Project (`project_id`, number): The project the time is for. The person must be on the project.
- Date (`day`, date): The day the work was done.
- Hours (`hours_spent`, number): How long the work took, in hours (1.5 is an hour and a half). At least 0.
- Start time (`from_time`, time): When the work started.
- End time (`to_time`, time): When the work ended.
- Note (`note`, text): What the work was.
- Person (`person_id`, number): Who did the work. Leave empty for yourself.
- Tags (`tag_ids`, list): Tags for the entry.
- Billable (`billable`, true/false): Whether the time can be invoiced. Leave empty to follow the project.
- Billed (`billed`, true/false): Whether the time has already been invoiced, which locks it.
- External ID (`external_id`, text): Your own reference for the entry, such as a ticket number.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "billable": true,
    "billed": true,
    "cost": {
      "amount": 1,
      "currency_code": "example",
      "formatted": "example",
      "fractional": 1
    },
    "created_at": 1,
    "day": "example",
    "duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "estimated": true,
    "estimated_duration": {
      "formatted": "example",
      "hours": 1,
      "minutes": 1,
      "seconds": 1,
      "total_hours": 1,
      "total_minutes": 1,
      "total_seconds": 1
    },
    "external_id": "example",
    "forecast_id": 1,
    "from": "example",
    "hour_rate": 1,
    "id": 1,
    "label_ids": [
      1
    ],
    "locked": true,
    "note": "example",
    "project": {
      "client": {
        "active": true,
        "color": "example",
        "external_id": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      },
      "color": "example",
      "id": 1,
      "name": "example"
    },
    "sequence": 1,
    "state": {
      "id": 1,
      "name": "example"
    },
    "timer_started_on": 1,
    "timer_state": "example",
    "timer_stopped_on": 1,
    "to": "example",
    "uid": "example",
    "updated_at": 1,
    "user": {
      "avatar": {
        "large": "example",
        "medium": "example",
        "timeline": "example"
      },
      "email": "example",
      "id": 1,
      "name": "example"
    },
    "user_ids": [
      1
    ]
  }
}
```
