Skip to content
skermes edited this page Mar 17, 2013 · 34 revisions

Topics

Topics

GET /topics

Response

[
  { id: 1,
    name: "Conversations",
    unread_conversations: 3
  },
  { id: 4,
    name: "Structural",
    unread_conversations: 0
  }
]

Returns a list of conversations that the logged-in user is participating in. Each conversation has a name, id and a count of how many conversations in the topic are unread (again, for the logged-in user).


POST /topics

Request

{ name: "Shenanigans" }

Response

{ id: 6,
  name: "Shenanigans",
  unread_conversations: 0
}

Creates a new topic with the name supplied in the request. New, empty topics are guaranteed to have no unread conversations (more generally, they have no conversations of any sort).

Clone this wiki locally