createAdminProfile

post

/ccadmin/v1/adminProfiles/

Create Admin Profile. Creates a new admin user profile.

Request

Supported Media Types
Body ()
Root Schema : createAdminProfile_request
Type: object
Show Source
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
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createAdminProfile_response
Type: object
Show Source
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|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top