Update User
patch
/rest/v7/companies/{companyName}/users/{userName}
This operation applies changes to an existing user.
Request
Supported Media Types
- application/json
Path Parameters
-
companyName: string
Company name of the user. Value can be either _host or _internal or Partner Organisation Company Name
-
userName: string
loginid
Root Schema : user
Type:
Show Source
object-
approvalDelegate(optional):
string
Title:
Approval DelegateThe approval delegate associated with the user -
billAddress1(optional):
string
Title:
Billing Address 1The billing address -
billAddress2(optional):
string
Title:
Billing Address 2Addtional billing address -
billCity(optional):
string
Title:
Billing CityThe billing city -
billCompany(optional):
string
Title:
Billing CompanyThe billing company -
billCompany2(optional):
string
Title:
Billing Company 2Additional billing company -
billCountry(optional):
string
Title:
Billing CountryThe billing country -
billEmail(optional):
string
Title:
Billing EmailThe billing email address -
billFax(optional):
string
Title:
Billing FaxThe billing fax number -
billFirstName(optional):
string
Title:
Billing First NameThe billing first name -
billLastName(optional):
string
Title:
Billing Last NameThe billing last name -
billPhone(optional):
string
Title:
Billing PhoneThe billing phone number -
billStateProvince(optional):
string
Title:
Billing StateThe billing state -
billZip(optional):
string
Title:
Billing ZipThe billing zip code -
companyId(optional):
integer
Title:
Company IDThe company ID to associate with the user -
currency(optional):
integer
Title:
Currency IDThe preferred Currency ID of the user -
currencyCode(optional):
string
Title:
Currency CodeThe preferred Currency Code of the user -
datePrefId(optional):
integer
Title:
Date PreferenceThe user?????????s date preference -
email(optional):
string
Title:
EmailThe email address of the user -
enabledForSso(optional):
string
Title:
Enabled For SSOThe Single Sign-On information associated with the user -
externalSsoId(optional):
string
Title:
External SSO IDThe external Single Sign On ID to associate with the user -
fax(optional):
string
Title:
Fax NumberThe fax of the user -
firstName(optional):
string
Title:
First NameThe first Name of the user -
id(optional):
integer
Title:
IDThe unique identifier of the user -
isAccessAdminPermEnabled(optional):
boolean
Is Access Admin permissions enabled? Yes = true, No = false
-
isNotifyEmail(optional):
boolean
Title:
Is Notification Preference EmailIs the notification preference email? Yes = true, No = false -
isNotifyFax(optional):
string
Title:
Is Notification Preference FaxIs the notification preference fax? Yes = true, No = false -
isProxyPermEnabled(optional):
boolean
Title:
Proxy Permission EnabledAre proxy permissions enabled? Yes = true, No = false -
isSuperUserPermEnabled(optional):
boolean
Title:
Is Superuser Permission EnabledIs superuser permission enabled? Yes = true, No = false -
isWebServicesOnly(optional):
boolean
Title:
Web Services OnlyIs Web Services Only enabled? Yes = true, No = false -
jobTitle(optional):
string
Title:
Job TitleThe job Title of the user -
language(optional):
integer
Title:
Language IDThe preferred language ID of the user -
languageCode(optional):
string
Title:
Language CodePreferred Language Code of the user -
lastName(optional):
string
Title:
Last NameThe last Name of the user -
login(optional):
string
Title:
Login IDThe login ID of the user -
numberFormatId(optional):
integer
Title:
Number Format IDThe number format ID -
phone(optional):
string
Title:
Phone NumberThe phone number of the user -
separateShipAddr(optional):
boolean
Title:
Seperate Ship AddressIs there a separate shipping address for the user? Yes = true, No = false -
shipAddress1(optional):
string
Title:
Shipping Address 1The shipping address -
shipAddress2(optional):
string
Title:
Shipping Address 2Additional shipping address -
shipCity(optional):
string
Title:
Shipping CityThe shipping city -
shipCompany(optional):
string
Title:
Shipping CompanyThe shipping company -
shipCompany2(optional):
string
Title:
Shipping Company 2Additional shipping company -
shipCountry(optional):
string
Title:
Shipping CountryThe shipping country -
shipEmail(optional):
string
Title:
Shipping EmailThe shipping email -
shipFax(optional):
string
Title:
Shipping FaxThe shipping fax number -
shipFirstName(optional):
string
Title:
Shipping First NameThe shipping first name -
shipLastName(optional):
string
Title:
Shipping Last NameThe shipping last name -
shipPhone(optional):
string
Title:
Shipping PhoneSThe shipping phone number -
shipStateProvince(optional):
string
Title:
Shipping StateSThe shipping state -
shipZip(optional):
string
Title:
Shipping ZipThe shipping zip code -
status(optional):
integer
Title:
StatusThe status of the user -
timeZone(optional):
string
Title:
Time ZoneThe time zone of the user -
type(optional):
string
Title:
TypeThe type of the user -
units(optional):
integer
Title:
UnitsThe user?????????s unit-type preference
Response
Default Response
No content. This task does not return elements in the response body.
Examples
The following example shows how to update user details by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X PATCH - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v7/companies/{companyname}/users/AAP39
Request Body Sample
{
"login": "AAP39",
"firstName": "AA39",
"lastName": "PP39",
"email": "service2@bigmachines.com",
"status": 1,
"type": "FULL_ACCESS",
"enabledForSso": "NOT_ENABLED",
"languageCode": "es_ES",
"currencyCode": "GBP"
}