Update subset of properties of a user
patch
/learn.rest/v1/users/{userId}
Request
Supported Media Types
- application/json
Path Parameters
-
userId: number
Unique identifier of User.
User object that needs to be updated
Root Schema : User
Type:
Show Source
object
-
city(optional):
string
-
company(optional):
string
-
country(optional):
string
-
department(optional):
string
-
email(optional):
string
-
email2(optional):
string
-
employeeId(optional):
string
-
fax(optional):
string
-
firstName(optional):
string
-
gender(optional):
string
Allowed Values:
[ "male", "female" ]
enum for gender are: male, female -
includeInSearchFlag(optional):
boolean
Default Value:
false
-
jobTitle(optional):
string
-
lastName(optional):
string
-
managerName(optional):
string
-
officeName(optional):
string
-
pager(optional):
string
-
pagerInteractive(optional):
string
-
passwordValidUntilDate(optional):
string
-
phoneDaytime(optional):
string
-
phoneEvening(optional):
string
-
phoneMobile(optional):
string
-
postalCode(optional):
string
-
profession(optional):
string
-
ssn(optional):
string
-
state(optional):
string
-
street1(optional):
string
-
street2(optional):
string
-
username(optional):
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.