Skip to content
richardthombs edited this page Nov 5, 2014 · 23 revisions

The Users API provides access to the User Management functionality of TeamHaven.

Get an existing user
Create a new user
Delete an existing user
Update an existing user
User search Find users closest to the specified position

Get an existing user

GET /api/users/:u[?schema=true]

Gets the specified user. If schema=true is present, then the User's Attribute Schema is included in the response.

Update an existing user

PUT /api/users/:u

Create a new user

POST /api/users

Delete an existing user

DELETE /api/users/:u

User search

GET /api/users

Returns an array of Users that match the specified search criteria.

Query String parameters

Role
Only return Users with the specified Role.
LowestRole
Only return Users with the specified Role or a higher one.
HighestRole
Only return Users with the specified Role or a lower one.

Find users closest to the specified position

GET /api/users/closest?position=:latlng&radius:r[&incumbent=:u]

Clone this wiki locally