Replace User Details

put

/rest/v7/companies/{companyName}/users/{userName}

This operation replaces the details of an existing user or creates a new user. If the Request URI references an existing user, the existing user details are replaced with an updated version of the user details. If the Request URI references a user that does not already exist, a new user is created.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : user
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : user
Type: object
Show Source
Back to Top

Examples

The following example shows how to replace user details by submitting a PUT request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X PUT - 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"
}
Back to Top