Update all properties of a user
put
/learn.rest/v1/users/{userId}
Update all properties of a user
Request
Supported Media Types
- application/json
Path Parameters
-
userId(required): number
Unique identifier of User.
User object that needs to be updated
Root Schema : User
Type:
Show Source
object
-
city:
string
-
company:
string
-
country:
string
-
department:
string
-
email:
string
-
email2:
string
-
employeeId:
string
-
fax:
string
-
firstName:
string
-
gender:
string
Allowed Values:
[ "male", "female" ]
enum for gender are: male, female -
includeInSearchFlag:
boolean
Default Value:
false
-
jobTitle:
string
-
lastName:
string
-
managerName:
string
-
officeName:
string
-
pager:
string
-
pagerInteractive:
string
-
passwordValidUntilDate:
string
-
phoneDaytime:
string
-
phoneEvening:
string
-
phoneMobile:
string
-
postalCode:
string
-
profession:
string
-
ssn:
string
-
state:
string
-
street1:
string
-
street2:
string
-
username:
string
Username of the user
Example:
{
"username":"cwallace",
"firstName":"Chris",
"lastName":"Wallace",
"street1":"500 Oracle Parkway",
"street2":"suite 500",
"city":"Redwood Shores",
"state":"CA",
"postalCode":"94065",
"country":"US",
"officeName":"HQ",
"gender":"male",
"includeInSearchFlag":true,
"jobTitle":"Product Manager",
"managerName":"n/a",
"pagerInteractive":"n/a",
"ssn":"n/a",
"email2":"n/a",
"pager":"n/a",
"company":"Oracle",
"fax":"n/a",
"department":"Product Development",
"phoneEvening":"n/a",
"email":"info@oracle.com",
"phoneDaytime":"+1.650.506.7000",
"profession":"Product Management",
"phoneMobile":"+1.800.392.2999",
"employeeId":"n/a",
"passwordValidUntilDate":"2016-10-12T11:00:00-04:00"
}
Security
-
auth: basic
Type:
basic
Description:Basic Authentication
Response
Supported Media Types
- application/xml
- application/json
200 Response
Resource updated.
400 Response
Request has incorrect syntax or does not contain a field that is required.
401 Response
404 Response
Resource not found.
500 Response
Internal server error.