Create a user
METHOD: POST
ENDPOINT: /api/v2/users/
AUTHENTICATED: No
The request body is a JSON representation of the user being created.
POST https://ushv3.dev/api/v2/users
|
Listing all users
METHOD: GET
ENDPOINT: /api/v2/users/
AUTHENTICATED: No
Name | Type | Description |
---|---|---|
q | Optional | Only users containing this search string will be returned, matched against 'email', 'first_name', 'last_name' and 'username' properties |
Optional | Filter results by email address | |
first_name | Optional | Filter results by first name |
last_name | Optional | Filter results by last name |
username | Optional | Filter 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 |
GET https://ushv3.dev/api/v2/users
|
GET https://ushv3.dev/api/v2/users?q=rob
|
Get a single user
METHOD: GET
ENDPOINT: /api/v2/users/:id
AUTHENTICATED: Yes
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 |
GET http://ushv3.dev/api/v2/users/1
|
Update a user
METHOD: PUT
ENDPOINT: /api/v2/users/:id
AUTHENTICATED: Yes
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 |
PUT http://ushv3.dev/api/v2/users/1
|
Deleting a user
METHOD: DELETE
ENDPOINT: /api/v2/users/:id
AUTHENTICATED: YES
Name | Type | Description |
---|---|---|
id | Required | The numerical id of the user being deleted. |
DELETE /api/v2/users/1
|