createAdminProfile
post
/ccadmin/v1/adminProfiles/
Create Admin Profile. Creates a new admin user profile.
Request
Supported Media Types
- application/json
Root Schema : createAdminProfile_request
Type:
Show Source
object
-
active(optional):
boolean
True if the user is active; false if the user is deactivated.
-
email:
string
Email address for user profile. This will also be used as the login property of the newly created user.
-
firstName:
string
First (given) name of the new user.
-
lastName:
string
Last name (surname) of the new user.
-
roles(optional):
array roles
Array of roles to assign to this profile.
Example:
{
"firstName":"Amber",
"lastName":"Admin",
"roles":[
"adminRole"
],
"active":true,
"email":"amber@example.com"
}
Nested Schema : roles
Type:
array
Array of roles to assign to this profile.
Show Source
-
Array of:
string
ID of the role.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : createAdminProfile_response
Type:
Show Source
object
-
id(optional):
string
The ID of the newly created profile.
Example Response (application/json)
{
"id":"iuser10060"
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|22003|If the email passed is null or empty|
|22004|If there was any internal error while creating the profile|
|22005|If the password passed is null or empty|
|22006|If profile already exists|
|22007|If invalid input is provided|
|23006|If the email is invalid|
|89001|If invalid roles are provided|
|89002|If the roles passed are null or empty|
|89012|If the roles passed do not contain atleast one privilege|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code