Add User
post
/appstore/publisher/v1/users
Add an user registered with current company (partner). The user needs to have an o.com account to able to access the Partner portal application.
Request
Supported Media Types
- application/xml
- application/json
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
500 Response
System Error
Examples
The following example creates a new user for a partner and return the newly created user ID by submitting a POST request on the REST resource using cURL.
cURL Example
curl -X POST -H "X-Oracle-UserId: partner-email" -H "Content-Type: application/json" -H "Authorization: Bearer Access-token -d JSON-data-as-shown-in-below-example' "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/users"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token Content-Type: application/json
Request Body
{ "firstName": "John", "lastName": "David", "email": "John.David@oracle.com", "role": { "roleId": 2 } }
HTTP Status Code:
201 Created
JSON Response:
{ "message": "User successfully created.", "entityId": "9483298" }Back to Top