Users
Attributes
Name | Type | Description |
---|---|---|
iduser | integer | Unique Picqer reference |
username | string | |
firstname | string | |
lastname | string | |
emailaddress | string | |
language | string | Language of the user interface |
admin | boolean | Has this users admin rights (at least 1 user per company) |
active | boolean | Inactive users cannot login and do not count towards user quota |
last_login_at | datetime | Moment of last login at web interface for this user |
Get all users
GET
https://example.picqer.com/api/v1/users
HTTP/1.1 200 OK
[
{
"iduser": 423,
"username": "stephan",
"firstname": "Stephan",
"lastname": "Groen",
"emailaddress": "demo@example.com",
"language": "nl",
"admin": true,
"active": true,
"last_login_at": "2015-07-24 12:11:20",
"created_at": "2013-12-19 13:47:13",
"updated_at": "2015-07-24 12:11:20"
}
]
This endpoint uses pagination.
Filters
You can filter the users with the following parameters. Add these filters as querystring parameters to the URL.
Attribute | Description | Example |
---|---|---|
active | If provided, you only get the active users. Otherwise all users. | true |
Get a single user
GET
https://example.picqer.com/api/v1/users/{iduser}
HTTP/1.1 200 OK
{
"iduser": 423,
"username": "stephan",
"firstname": "Stephan",
"lastname": "Groen",
"emailaddress": "demo@example.com",
"language": "nl",
"admin": true,
"active": true,
"last_login_at": "2015-07-24 12:11:20",
"created_at": "2013-12-19 13:47:13",
"updated_at": "2015-07-24 12:11:20"
}
Get me, myself and I
Returns the user information of the current logged in user, should be you
GET
https://example.picqer.com/api/v1/users/me
HTTP/1.1 200 OK
{
"iduser": 423,
"username": "stephan",
"firstname": "Stephan",
"lastname": "Groen",
"emailaddress": "demo@example.com",
"language": "nl",
"admin": true,
"active": true,
"last_login_at": "2015-07-24 12:11:20",
"created_at": "2013-12-19 13:47:13",
"updated_at": "2015-07-24 12:11:20"
}
Read more Suppliers