Messages

List Messages - GET /projects/#{project_id}/messages.xml

Retrieve a list of messages for the current project.

Response:

1
2
3
4
5
6
7
8
9

<messages>
  <message>
    ...
  </message>
  <message>
    ...
  </message>
</messages>

Get Message - GET /projects/#{project_id}/messages/#{ID}.xml

This fetches the Message. Parent messages also have the comments included, while individual comments only contain the comment attributes.

Response:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

<message>
   <attachments-count type="integer">0</attachments-count>
  <body>#{unprocessed body}</body>
  <body-html>#{processed HTML body}</body-html>
  <comments-count type="integer">3</comments-count>
  <created-at type="datetime">2006-07-25T21:52:31Z</created-at>
  <id type="integer">8</id>
  <parent-id type="integer"></parent-id>
  <permalink>#{message-permalink}</permalink>
  <project-id type="integer">2</project-id>
  <title>#{message title}</title>
  <updated-at type="datetime">2007-01-15T21:22:05Z</updated-at>
  <user-id type="integer">1</user-id>
  <comments>
    <comment type="Message">
      ...
    </comment>
    <comment type="Message">
      ...
    </comment>
  </comments>
</message>

New Message - GET /projects/#{project_id}/messages/new.xml

This gives you the initial state for an empty message.

Response:

1
2
3
4
5
6
7
8
9
10
11
12
13
14

<message>
  <attachments-count type="integer">0</attachments-count>
  <body></body>
  <body-html></body-html>
  <comments-count type="integer">0</comments-count>
  <created-at type="datetime"></created-at>
  <parent-id type="integer"></parent-id>
  <permalink></permalink>
  <project-id type="integer"></project-id>
  <title></title>
  <updated-at type="datetime"></updated-at>
  <user-id type="integer"></user-id>
</message>

Create Message - POST /projects/#{project_id}/messages.xml

Creates a message. The shown fields are the only ones you can set:

  • body - the body of message.
  • title - the title of the message

Request:

1
2
3
4
5

<message>
  <title>...</title>
  <body></body>
</message>

Response:

  • HTTP Status: 201 Created
  • Location: http://activereload.lighthouseapp.com/projects/5/messages/5.xml
1
2
3
4

<message>
  ...
</message>

Create Comment - POST /projects/#{project_id}/messages/5/comments.xml

Creates a comment. The shown fields are the only ones you can set:

  • body - the body of message.
  • title - the title of the message

Request:

1
2
3
4
5

<message>
  <title>...</title>
  <body></body>
</message>

Response:

  • HTTP Status: 201 Created
  • Location: http://activereload.lighthouseapp.com/projects/5/messages/6.xml
1
2
3
4

<message>
  ...
</message>

Update Message - POST /projects/#{project_id}/messages/ID.xml

Updates a message. The shown fields are the only ones you can set:

  • body - the body of changeset log message.
  • title - the title of the message

Request:

1
2
3
4
5

<message>
  <title>...</title>
  <body></body>
</message>

Response:

  • HTTP Status: 200 OK

Delete Message - DELETE /projects/#{project_id}/messages/#{ID}.xml

Response:

  • HTTP Status: 200 OK
« Changesets | API | Milestones »

Visit us in the forums

If you can't find what you're looking for here? visit us in the forums.