createAdminRole

post

/ccadmin/v1/adminRoles

Create Admin Role. Creates a new admin role.

Request

Supported Media Types
Body ()
Root Schema : createAdminRole_request
Type: object
Show Source
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: array
Access rights and privileges to assign to the role
Show Source
Nested Schema : securityCriteria
Type: array
Security criteria to assign to the role
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createAdminRole_response
Type: object
Show Source
Nested Schema : accessRights
Type: array
Access rights assigned to the role
Show Source
Nested Schema : securityCriteria
Type: array
Security criteria assigned to the role
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
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|
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