Description

Create a user

Parameters

Name Type Required Optional Searchable Note
siteid numeric REQUIRED, Passed via URI
username string REQUIRED, Passed via BODY
firstname string REQUIRED, Passed via BODY
password string REQUIRED, Passed via BODY
lastname string REQUIRED, Passed via BODY
employeeid string OPTIONAL, Passed via BODY

Examples

Example Request

http://devsandbox.targetsolutions.com/v1/sites/{siteid}/users

Example Header

POST /sites/{siteid}/users HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: feH65mTjLZf1leRWTyjYew==
Cache-Control: no-cache

Example Body JSON

{
  "username":"random username data",
  "firstname":"random firstname data",
  "password":"random password data",
  "lastname":"random lastname data"
}

Possible Results Sets

Results Set

{
  "firstname": "random firstname data",
  "siteid": 12,
  "employeeid": "",
  "email": "",
  "username": "random username data",
  "status": "Offline",
  "lastname": "random lastname data",
  "userid": 484703
}

Access Denied Set

{
  "httpcode":401,
  "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/800",
  "developermessage":"A request was made to a resource that you do not have ownership of.",
  "statuscode":800,
  "status":"access denied"
}