Update User
put
/appstore/publisher/v1/users/{id}
Update the user details registered with current company (partner).
Request
Supported Media Types
- application/xml
- application/json
Path Parameters
-
id: integer(int64)
User Id of a valid user belonging to the publisher.
Provide the body with required information.
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
400 Response
Invalid Parameter Value/Bad Request
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example updates the details of given user associated with the partner, by submitting a PUT request on the REST resource using cURL.
cURL Example
curl -X PUT -H "X-Oracle-UserId: partner-email" -H "Content-Type: application/json" -H "Authorization: Bearer Access-token" -d 'JSON-data-as-shown-in-following-example' "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/users/9483298"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token Content-Type: application/json
Request Body
{ "firstName": "John", "lastName": "Wick", "role": { "roleId": 2 } }
HTTP Status Code:
200 OK
JSON Response:
{ "message": "User successfully updated.", "entityId": "9483298" }Back to Top