updateCurrentAdminProfile
put
                    /ccadmin/v1/adminProfiles/current
Update Current Admin Profile. Updates the currently logged in admin user profile.
                Request
Supported Media Types
                - application/json
 
Root Schema : updateCurrentAdminProfile_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            email(optional): 
            string
            Email address for user profile. This will also be used as the login property of the newly created user.
 - 
            firstName(optional): 
            string
            First (given) name of the new user.
 - 
            lastName(optional): 
            string
            Last name (surname) of the new user.
 
Example:
    
    
{
    "firstName":"Amber",
    "lastName":"Admin",
    "email":"amber@example.com"
}Response
Supported Media Types
                - application/json
 
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : updateCurrentAdminProfile_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            active(optional): 
            boolean
            True if the user is active; false if the user is deactivated.
 - 
            createdBy(optional): 
            string
            ID of the user that created this profile
 - 
            email(optional): 
            string
            Email address and login name of the profile.
 - 
            external(optional): 
            boolean
            True if the user was created externally
 - 
            firstName(optional): 
            string
            First name of the profile.
 - 
            id(optional): 
            string
            ID of this profile.
 - 
            lastName(optional): 
            string
            Last name of the profile.
 - 
            registrationDate(optional): 
            string
            User's registration date.
 - 
            repositoryId(optional): 
            string
            Repository ID of this profile.
 - 
            roles(optional): 
            array  roles
            
            Array of roles assigned to this profile.
 - 
            rolesLastModified(optional): 
            string
            Roles last modified timestamp.
 - 
            tourComplete(optional): 
            boolean
            True if the user has completed the walk-through tour of the admin product.
 
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            repositoryId(optional): 
            string
            Repository ID of the role.
 
Example Response (application/json)
                    {
    "lastName":"Admin",
    "firstName":"Amber",
    "external":false,
    "tourComplete":true,
    "createdBy":"admin",
    "roles":[
        {
            "repositoryId":"adminRole"
        }
    ],
    "repositoryId":"iuser260015",
    "registrationDate":"2014-09-24T12:00:00.000Z",
    "active":true,
    "id":"iuser260015",
    "rolesLastModified":"2021-02-22T12:00:00.000Z",
    "email":"amber@example.com"
}
                    
                    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|
|22006|If profile already exists|
|22007|If invalid input is provided|
|23001|If there was any internal error while updating the profile|
|23006|If the email is invalid|
|23012|If the last name passed is empty|
|23013|If the first name passed is empty|
|23037|If user tries to deactivate current logged in user|
|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|
|89013|If user tries to remove admin privilege from self|
                
                
                    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: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn 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