Summary
Create a group.
Description
Create a group
Route
POST /authorization/groups
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
group |
object |
yes |
The group to create. |
Copied to Clipboard
{
"group": {
"provenance": "Pronghorn",
"name": "group_1",
"description": "description of group_1",
"memberOf": [
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
}
],
"assignedRoles": [
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
}
],
"inactive": true,
"_meta": {
"created": "2018-08-02T15:56:12.912Z",
"updated": "2018-08-02T15:56:12.912Z"
}
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"group": {
"title": "group",
"$ref": "groups-schema"
}
},
"required": [
"group"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
Result of group creation process |
Copied to Clipboard
{
"status": "Created",
"message": "A sample success message",
"data": {
"provenance": "Local AAA",
"name": "group_1",
"description": "description of group_1",
"memberOf": [
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": false,
"groupId": "5cb7b531d06cceb89fd21b1c"
},
{
"aaaManaged": true,
"groupId": "5cb7b531d06cceb89fd21b1c"
}
],
"assignedRoles": [
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
},
{
"roleId": "5cb7b531d06cceb89fd21b1c"
}
],
"inactive": false,
"_meta": {
"created": "2018-08-02T15:56:12.912Z",
"updated": "2018-08-02T15:56:12.912Z"
}
}
}