Users

get users

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
orderbystringOptional

Sorting parameter Available values : entity fields Default value : id

orderstringOptional

Sorting parameter Available values : [ASC,DESC] Default value : ASC

limitinteger · int32Optional

Paging parameter Default value : null

offsetinteger · int32Optional

Paging parameter Default value : 0

qstringOptional

Filter parameter if this parameter is set then the api will return posts containing q text in name property

rolestringOptional

Filter parameter to return the users who have the role/roles. ItAccepts multiple values as an array or as a string but they will be separated by a comma

Responses
200

OK

application/json
get
/api/v3/users

add user

POST https://ushahididocs.api.ushahidi.io/api/v3/users

Request Body

Name
Type
Description

email

String

The user's email address

failed_attempts

Integer

Number of failed attempts

logins

integer

Number of login attempts

realname

String

The user's real name

password

String

The user's password

last_attempt

String

Date of previous login attempt

last_login

String

Last login date

gravatar

String

The user's gravatar

role

String

user's roleString

get user

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
get
/api/v3/users/3

edit user

PUT https://ushahididocs.api.ushahidi.io/api/v3/users/1

Request Body

Name
Type
Description

email

String

The user's email address

failed_attempts

Integer

Number of failed attempts

logins

integer

Number of login attempts

realname

String

The user's real name

password

String

The user's password

last_attempt

String

Date of previous login attempt

last_login

String

Last login date

gravatar

String

The user's gravatar

role

String

user's roleString

edit admin user

PUT https://ushahididocs.api.ushahidi.io/api/v3/users/me

Request Body

Name
Type
Description

email

String

The user's email address

failed_attempts

Integer

Number of failed attempts

logins

integer

Number of login attempts

realname

String

The user's real name

password

String

The user's password

last_attempt

String

Date of previous login attempt

last_login

String

Last login date

gravatar

String

The user's gravatar

role

String

user's roleString

delete user

delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
delete
/api/v3/users/80

get account/admin user

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

OK

application/json
get
/api/v3/users/me