Tasks

Endpoints

List tasks

GET https://api.upcoach.com/todos

Returns a list of tasks

Query Parameters

{
    "data": [
      {
        "id": "...",
        "user": {
          "avatar": "...",
          "email": "...",
          "id": "...",
          "name": "...",
          "timezone": "..."
        },
        "program": {
          "id": "...",
          "name": "...",
          "created_at": ...
        },
        "description": "...",
        "due": ...,
        "done": ...,
        "created_at": ...
      },
    ...
  ],
  "links": {
    "first": "...",
    "last": "...",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": ...,
    "from": ...,
    "last_page": ...,
    "path": "...",
    "per_page": ...,
    "to": ...,
    "total": ...
  }
}

Add a task

POST https://api.upcoach.com/todos

Adds a new task to a user on a program

Request Body

{
    "todo": {
      "id": "...",
      "user": {
        "avatar": "...",
        "email": "...",
        "id": "...",
        "name": "...",
        "timezone": "..."
      },
      "program": {
        "id": "...",
        "name": "...",
        "created_at": ...
      },
      "description": "...",
      "due": ...,
      "done": ...,
      "priority": "...",
      "created_at": ...
    }
}

Resource Objects

Task

Last updated