Skip to content

Commit

Permalink
Document UpdateTask method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitshur committed Jul 6, 2016
1 parent 11fa747 commit f485db9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions asana/asana.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ func (c *Client) GetTask(id int64, opt *Filter) (Task, error) {
return *task, err
}

// UpdateTask updates a task.
//
// https://asana.com/developers/api-reference/tasks#update
func (c *Client) UpdateTask(id int64, tu TaskUpdate, opt *Filter) (Task, error) {
task := new(Task)
err := c.request("PUT", fmt.Sprintf("tasks/%d", id), tu, opt, task)
Expand Down

0 comments on commit f485db9

Please sign in to comment.