Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed copy-paste errors from todolist API #4

Merged
merged 1 commit into from

2 participants

@naehrstoff

I tested the new URLs and they seem to work – luckily the API is nicely guessable :)

@dhh dhh merged commit 56477db into basecamp:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 29, 2012
  1. @naehrstoff
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 sections/todos.md
View
4 sections/todos.md
@@ -46,7 +46,7 @@ Get todo
Create todo
-----------
-* `POST /projects/1/todolists.json` will create a new todolist from the parameters passed. The `due_at` parameter should be in ISO 8601 format (like "2012-03-27T16:00:00-05:00"). The assignee parameters need an `type` field with either `Person` or `Group` specified. The `id` is then the id of that person or group.
+* `POST /projects/1/todolists/1/todos.json` will add a new todo to the specified todolist from the parameters passed. The `due_at` parameter should be in ISO 8601 format (like "2012-03-27T16:00:00-05:00"). The assignee parameters need an `type` field with either `Person` or `Group` specified. The `id` is then the id of that person or group.
```json
{
@@ -65,7 +65,7 @@ This will return `200 OK`, with the URL of the new todo in the `Location` header
Update todo
-----------
-* `PUT /projects/1/todolists/1.json` will update the todolist from the parameters passed. The `completed` field can be set to either `true` or `false` to check or uncheck the todo.
+* `PUT /projects/1/todos/1.json` will update the todo from the parameters passed. The `completed` field can be set to either `true` or `false` to check or uncheck the todo.
```json
{
Something went wrong with that request. Please try again.