Update a user

put

/api/REST/1.0/system/user/{id}

Updates the user specified by the id parameter.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the details of the user to be updated.
Root Schema : User
Type: object
Title: User
Show Source
Nested Schema : UserPreferences
Type: object
Title: UserPreferences
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : User
Type: object
Title: User
Show Source
Nested Schema : UserPreferences
Type: object
Title: UserPreferences
Show Source

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

Update the user with Id #2 when logged in as user #2:

Note:

The defaultAccountViewId and defaultContactViewId are the only parameters that can be updated using this request.

PUT /api/REST/1.0/system/user/2
Content-Type: application/json 
			

Request body:


{
     "id":"2",
     "name":"API User",
     "defaultAccountViewId": "100002"    
}
			

Response:


{
	"type": "User",
	"id": "2",
	"createdAt": "1432136984",
	"createdBy": "1",
	"depth": "complete",
	"description": "An API User",
	"name": "API User",
	"updatedAt": "1452207032",
	"updatedBy": "9",
	"betaAccess": [...],
	"capabilities": [],
	"company": "API.Testing",
	"defaultAccountViewId": "100002",
	"defaultContactViewId": "100001",
	"emailAddress": "api.user@oracle.com",
	"interfacePermissions": [...],
	"loggedInAt": "1528818275",
	"loginName": "API.User",
	"preferences": {
		"type": "UserPreferences",
		"timezoneId": "64"
	},
	"productPermissions": [...],
	"typePermissions": [...]
}
			

Note:

This response displays additional properties because the user being updated is the same user performing the request. Depth will also be set to complete.
Back to Top