POST create new user
Creates a new user as a member of one of the existing groups.
Resource URL:
https://api.priotice.se/rest/{auth}/user/create
POST parameters:
Variable name (case sensitive) |
Required | Variable type | Note |
---|---|---|---|
GroupID | Required | integer | Group identifier (the GroupID parameter returned by by list groups methods) |
Name | Required | string | User full name |
Required | string | User email address |
Data returned:
If will return a success status along with the UserID of the user that was inserted if the operation was successful. Else, it will return an error code.
Example request
POST https://api.priotice.se/rest/a642b4bb929y0c57e5ae2954/user/create
Example response:
{ "Status": "success", "Data": { "UserID": 183 } }
CURL example:
curl --data "GroupID=62&Name=Kristina%20Olofsson&Email=kristina@company.com" https://api.priotice.se/rest/a632b4ab929f0c57d5ae285450/user/create