POST update user
Updates an existing user. The fields that can be updated are Name and Email.
Constraints: the Email value must be unique within the group of users belonging to the same organization.
Resource URL:
https://api.priotice.se/rest/{auth}/user/update
POST parameters:
Variable name (case sensitive) |
Required | Variable type | Note |
---|---|---|---|
UserID | Required | integer | User identifier (UserID parameter returned by list users method) |
Name | Optional | string | User full name |
Optional | string | User email address |
Data returned:
If will return a success status along with the UserID of the user that was updated if the operation was successful. Else, it will return an error code.
Example request
POST https://api.priotice.se/rest/d41d8cd98f00b204e9800998ecf8427e/user/update
Example response:
{ "Status": "success", "Data": { "UserID": 183 } }
CURL example:
curl --data "UserID=183&Name=Test%20User%20Updated%20Name" https://api.priotice.se/rest/a632b4ab929f0c57d5ae2/user/update