FOR ARCHIVAL PURPOSES ONLY

The information in this wiki hasn't been maintained for a good while. Some of the projects described have since been deprecated.

In particular, the "Ushahidi Platform v3.x" section contains information that is often misleading. Many details about this version of Platform have changed since.

This website is an extraction of the original Ushahidi wiki into a static form. Because of that, functions like logging in, commenting or searching will not work.

For more documentation, please refer to https://docs.ushahidi.com

Skip to end of metadata
Go to start of metadata

POST users

Create a user

METHOD: POST
ENDPOINT: /api/v2/users/
AUTHENTICATED: No

The request body is a JSON representation of the user being created.

Example request

POST https://ushv3.dev/api/v2/users

Post Data
Response

GET users

Listing all users

METHOD: GET
ENDPOINT: /api/v2/users/
AUTHENTICATED: No

Query Parameters

Name

Type

Description

q

Optional

Only users containing this search string will be returned, matched against 'email', 'first_name', 'last_name' and 'username' properties

emailOptionalFilter results by email address
first_nameOptionalFilter results by first name
last_nameOptionalFilter results by last name
usernameOptionalFilter results by username

order

Optional

Returned users will be sorted in this order: ASC or DESC. Default: DESC

order_by

Optional

Returned users will be sorted by this field. Allowed: id, created, email, username Default: created

limit

Optional

Limit number of results returned. Default: 50. Max: 500

offset

Optional

Users returned will be offset by this number of results

Example Request

GET https://ushv3.dev/api/v2/users

Response

Search Example

GET https://ushv3.dev/api/v2/users?q=rob

Response

GET users/:id

Get a single user

METHOD: GET
ENDPOINT: /api/v2/users/:id
AUTHENTICATED: Yes

Query Parameters

Name

Type

Description

id

Required

The numerical id of the user being updated

In a special case this can also be 'me' to get the current user

Example Request

GET http://ushv3.dev/api/v2/users/1

Response

PUT users/:id

Update a user

METHOD: PUT
ENDPOINT: /api/v2/users/:id
AUTHENTICATED: Yes

Query Parameters

Name

Type

Description

id

Required

The numerical id of the user being updated.

In a special case this can also be 'me' to get the current user

Example Request

PUT http://ushv3.dev/api/v2/users/1

Post Data
Response

DELETE users/:id

Deleting a user

METHOD: DELETE
ENDPOINT: /api/v2/users/:id
AUTHENTICATED: YES

Query Parameters

Name

Type

Description

id

Required

The numerical id of the user being deleted.

Example request

DELETE /api/v2/users/1

Response
  • No labels