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:
boolean
True if the user is active; false if the user is deactivated. -
Type:
string
Required:true
Email address for user profile. This will also be used as the login property of the newly created user. - firstName
-
Type:
string
Required:true
First (given) name of the new user. - lastName
-
Type:
string
Required:true
Last name (surname) of the new user. - roles
-
Type:
array
rolesAdditional Properties Allowed:Array of roles assigned to this profile.
Nested Schema : roles
Nested Schema : items
Type:
object
- repositoryId
-
Type:
string
Repository 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:
string
The ID of the newly created profile.
Example application/json
{
"id":"iuser10060"
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The 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"}