createAdminProfile
post
/ccadmin/v1/adminProfiles/
Create Admin Profile. Creates a new admin user profile.
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : createAdminProfile_request
{
"firstName":"Amber",
"lastName":"Admin",
"roles":[
"adminRole"
],
"active":true,
"email":"amber@example.com"
}
- active
-
Type:
booleanTrue if the user is active; false if the user is deactivated. -
Type:
stringRequired:trueEmail address for user profile. This will also be used as the login property of the newly created user. - firstName
-
Type:
stringRequired:trueFirst (given) name of the new user. - lastName
-
Type:
stringRequired:trueLast name (surname) of the new user. - roles
-
Type:
arrayrolesAdditional Properties Allowed:Array of roles assigned to this profile.
Nested Schema : roles
Nested Schema : items
Type:
object- repositoryId
-
Type:
stringRepository ID of role.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : createAdminProfile_response
- id
-
Type:
stringThe ID of the newly created profile.
Example application/json
{
"id":"iuser10060"
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{
"firstName": "Amber",
"lastName": "Admin",
"roles": ["adminRole"],
"active": true,
"email": "amber@example.com"
}
Sample Response Payload returned by endpoint:
{"id": "iuser10060"}