Users and Membership

Get User - GET /users/#{ID}.xml

This fetches a public representation of the user with only the name, job, and website attributes.

Response:

1
2
3
4
5
6
7

<user>
  <id type="integer">1</id>
  <job>Rails Monkey</job>
  <name>rick</name>
  <website></website>
</user>

Update User - POST /users/ID.xml

Updates a user. This action can only be performed by the user.

Request:

1
2
3
4
5
6
7

<user>
  <id type="integer">1</id>
  <job>Rails Monkey</job>
  <name>rick</name>
  <website></website>
</user>

Response:

  • HTTP Status: 200 OK

Get Memberships - GET /users/#{ID}/memberships.xml

This fetches membership details for a given user. Each membership object contains a full URL to either an account or an account's project.

Response:

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

<memberships>
  <membership>
    <id type="integer">1</id>
    <user-id type="integer">1</user-id>
    <account>http://activereload.lighthouseapp.com</account>
  </membership>
  <membership>
    <id type="integer">2</id>
    <user-id type="integer">1</user-id>
    <project>http://activereload.lighthouseapp.com/projects/44</project>
  </membership>
</memberships>

Get Token - GET /tokens/#{token}.xml

This fetches a details on the given token.

Response:

1
2
3
4
5
6
7
8
9
10

<token>
  <created-at type="datetime">2007-04-21T18:17:32Z</created-at>
  <note>test 1</note>
  <project-id type="integer"></project-id>
  <read-only type="boolean">false</read-only>
  <token>#{TOKEN}</token>
  <user-id type="integer">1</user-id>
  <account>http://activereload.lighthouseapp.com</account>
</token>
« Ticket Bins | API

Visit us in the forums

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