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 to assign to role
-
description(optional):
string
Description of role
-
name:
string
Name of role
-
repositoryId(optional):
string
Repository ID of role
Nested Schema : items
Type:
Show Source
object
-
repositoryId(optional):
string
Repository ID of access right
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getAdminRole_response
Type:
Show Source
object
-
accessRights(optional):
array accessRights
Access rights assigned to role
-
category(optional):
string
Role category
-
description(optional):
string
Description of role
-
name(optional):
string
Name of role
-
repositoryId(optional):
string
Repository ID of role
Nested Schema : items
Type:
Show Source
object
-
description(optional):
string
Description of access right
-
name(optional):
string
Name of access right
-
repositoryId(optional):
string
Repository ID of access right
Example Response (application/json)
{
"name":"SuperAgent",
"repositoryId":"superAgentRole",
"description":"Super Agent Role",
"accessRights":[
{
"name":"Sensitive Data",
"repositoryId":"sensitiveData",
"description":"Access to sensitive data"
},
{
"name":"Very Sensitive Data",
"repositoryId":"verySensitiveData",
"description":"Access to very sensitive data"
}
],
"category":"Custom"
}
Default Response
The error response
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