createAdminRole
post
                    /ccadmin/v1/adminRoles
Create Admin Role. Creates a new admin role.
                Request
Supported Media Types
                - application/json
 
Root Schema : createAdminRole_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            accessRights(optional): 
            array  accessRights
            
            Access rights and privileges to assign to the role
 - 
            description(optional): 
            string
            Description of the role
 - 
            name: 
            string
            Name of the role
 - 
            repositoryId(optional): 
            string
            Repository ID of the role
 - 
            securityCriteria(optional): 
            array  securityCriteria
            
            Security criteria to assign to the role
 
Example:
    
    
{
    "securityCriteria":[
        {
            "id":"sc-1100"
        }
    ],
    "name":"SuperAgent",
    "repositoryId":"superAgentRole",
    "description":"Super Agent Role",
    "accessRights":[
        {
            "repositoryId":"sensitiveData"
        },
        {
            "repositoryId":"verySensitiveData"
        },
        {
            "repositoryId":"ora.csAgentPrivilege"
        }
    ]
}Nested Schema : accessRights
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAccess rights and privileges to assign to the role
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            repositoryId(optional): 
            string
            Repository ID of the access right
 
Response
Supported Media Types
                - application/json
 
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : createAdminRole_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            accessRights(optional): 
            array  accessRights
            
            Access rights assigned to the role
 - 
            category(optional): 
            string
            Role category
 - 
            description(optional): 
            string
            Description of the role
 - 
            id(optional): 
            string
            ID of the role
 - 
            name(optional): 
            string
            Name of the role
 - 
            repositoryId(optional): 
            string
            Repository ID of the role
 - 
            securityCriteria(optional): 
            array  securityCriteria
            
            Security criteria assigned to the role
 - 
            securityCriteriaLastModified(optional): 
            string
            Security criteria last modified timestamp.
 
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            description(optional): 
            string
            Description of the access right
 - 
            displayName(optional): 
            string
            Display name of the access right
 - 
            id(optional): 
            string
            ID of the access right
 - 
            name(optional): 
            string
            Name of the access right
 - 
            repositoryId(optional): 
            string
            Repository ID of the access right
 - 
            type(optional): 
            string
            Type of access right
 
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            description(optional): 
            string
            Description of the security criterion
 - 
            id(optional): 
            string
            ID of the security criterion
 - 
            name(optional): 
            string
            Name of the security criterion
 
Example Response (application/json)
                    {
    "securityCriteria":[
        {
            "name":"Security Criterion for Catalog",
            "description":"Grant access to catalogs: ClassicalMoviesCatalog",
            "id":"sc-1100"
        }
    ],
    "name":"SuperAgent",
    "repositoryId":"superAgentRole",
    "description":"Super Agent Role",
    "id":"superAgentRole",
    "accessRights":[
        {
            "displayName":"Sensitive Data",
            "name":"Sensitive Data",
            "repositoryId":"sensitiveData",
            "description":"Access to sensitive data",
            "id":"sensitiveData",
            "type":"generic"
        },
        {
            "displayName":"Very Sensitive Data",
            "name":"Very Sensitive Data",
            "repositoryId":"verySensitiveData",
            "description":"Access to very sensitive data",
            "id":"verySensitiveData",
            "type":"generic"
        },
        {
            "displayName":"CS Agent",
            "name":"CS Agent",
            "repositoryId":"ora.csAgentPrivilege",
            "description":"CS Agent Privilege",
            "id":"ora.csAgentPrivilege",
            "type":"privilege"
        }
    ],
    "securityCriteriaLastModified":"2020-08-17T04:55:39.652Z",
    "category":"Custom"
}
                    
                    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|
|------------------|------------------|
|22047|If input passed is invalid|
                
                
                    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