Users
Available API Paths
/api/users/admins
The following methods are available for this path:
GET
Returns a list of all users which have administrator rights.
Parameters
Name | Location | Type | Description |
---|---|---|---|
page | query | integer | Page offset. Set to 0 to start at the beginning. |
pageSize | query | integer | Number of users to return per page. |
Responses
Status | Description | Response Content or Scheme |
200 | A list of admins. |
|
401 | Unauthorized request error |
|
404 | Resource is not found error |
|
500 | Internal server error |
|
PUT
Adds specified user to the administrator list.
Parameters
Name | Location | Type | Description |
---|---|---|---|
query | string | The email of the user to add. |
Responses
Status | Description | Response Content or Scheme |
204 | ||
400 | Bad request error, mostly that means provided data is invalid |
|
401 | Unauthorized request error |
|
500 | Internal server error |
|
DELETE
Removes specified user from administrator list.
Parameters
Name | Location | Type | Description |
---|---|---|---|
query | string | The email of the user to remove. |
Responses
Status | Description | Response Content or Scheme |
204 | ||
400 | Bad request error, mostly that means provided data is invalid |
|
401 | Unauthorized request error |
|
500 | Internal server error |
|
/api/users/{userId}
The following methods are available for this path:
GET
Return data for registered user.
Parameters
Name | Location | Type | Description |
---|---|---|---|
userId | path | string | A user id |
Responses
Status | Description | Response Content or Scheme |
200 | User data. |
|
401 | Unauthorized request error |
|
404 | Resource is not found error |
|
500 | Internal server error |
|
DELETE
Deletes specified user.
Parameters
Name | Location | Type | Description |
---|---|---|---|
userId | path | string | A user id |
Responses
Status | Description | Response Content or Scheme |
204 | ||
400 | Bad request error, mostly that means provided data is invalid |
|
401 | Unauthorized request error |
|
500 | Internal server error |
|
/api/users
The following methods are available for this path:
GET
Returns a list of all currently registered users.
Parameters
Name | Location | Type | Description |
---|---|---|---|
page | query | integer | Page offset. Set to 0 to start at the beginning. |
pageSize | query | integer | Number of users to return per page. |
Responses
Status | Description | Response Content or Scheme |
200 | A list of users. |
|
401 | Unauthorized request error |
|
500 | Internal server error |
|
POST
Creates a new platform user
Request Body
Name | Location | Type | Description |
body | body | object | Properties:
|
Responses
Status | Description | Response Content or Scheme |
200 | User id. | |
400 | Bad request error, mostly that means provided data is invalid |
|
401 | Unauthorized request error |
|
500 | Internal server error |
|