Description

Update a user

Parameters

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

Examples

Example Request

http://devsandbox.targetsolutions.com/v1/users/{userid}

Example Header

PUT /users/{userid} HTTP/1.1
Host: http://devsandbox.targetsolutions.com/v1
AccessToken: gwzD4YtPQSXUaVxdklnUIA==
Cache-Control: no-cache

Example Body JSON

{
  "username":"random username data",
  "firstname":"random firstname data",
  "lastname":"random lastname data",
  "status":"random status data",
  "employeeid":"random employeeid data"
}

Possible Results Sets

Results Set

{
  "httpcode":202,
  "moreinfo":"http://developers.targetsolutions.com/v1/responsecodes/702",
  "developermessage":"The request has been fulfilled and resulted in a resource being updated.",
  "statuscode":702,
  "status":"accepted" 
} 

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"
}