Create a Group for Host Company or Partner Organization
post
/rest/v19/companies/{companyLoginName}/groups
This endpoint create a group for the host company and partner organization based on logged in users.
Request
Supported Media Types
- application/json
Path Parameters
-
companyLoginName(required): string
Company login name.
Root Schema : Group Details
Type:
objectTitle:
Show Source
Group Details-
description:
string
Title:
DescriptionDescription of the group. -
label(required):
string
Title:
LabelName of the group. -
segments:
object Segments
Title:
SegmentsAccess Segments for the group. -
status:
object Status
Title:
StatusPreferred status format of the group. -
type(required):
object Type
Title:
TypePreferred type format of the group. -
users:
object Selected Users
Title:
Selected UsersThe users list part of the group. -
variableName(required):
string
Title:
VariableNameVariable name of the group.
Nested Schema : Status
Type:
objectTitle:
StatusPreferred status format of the group.
Show Source
-
displayValue:
string
Title:
Display ValueDisplay value. -
value(required):
number
Title:
ValueValue
Nested Schema : Type
Type:
objectTitle:
TypePreferred type format of the group.
Show Source
-
displayValue:
string
Title:
Display ValueDisplay value. -
value(required):
number
Title:
ValueValue
Nested Schema : Selected Users
Type:
objectTitle:
Selected UsersThe users list part of the group.
Show Source
Nested Schema : items
Type:
Show Source
array-
Array of:
object Segment Details
Title:
Segment Details
Nested Schema : Segment Details
Type:
objectTitle:
Show Source
Segment Details-
checked:
boolean
Title:
CheckedIs segment enabled. -
icon:
string
Title:
IconPath of the icon image file. This field is only applicable if uiMetadata is set as true. -
segments:
object Sub Segments
Title:
Sub SegmentsSub access segments for the segment. -
status:
integer
Title:
StatusSpecifies if the segment is enabled, partially selected or unselected. Possible values are 0[UNCHECKED], 1[PARTIALCHECKED],2[CHECKED]. This field is only applicable if uiMetadata is set as true. -
variableName(required):
string
Title:
VariableNameSegment variable name.
Nested Schema : Sub Segments
Type:
objectTitle:
Sub SegmentsSub access segments for the segment.
Show Source
Nested Schema : items
Type:
Show Source
array-
Array of:
object Sub Segment Details
Title:
Sub Segment Details
Nested Schema : Sub Segment Details
Type:
objectTitle:
Show Source
Sub Segment Details-
checked:
boolean
Title:
CheckedIs segment enabled. -
icon:
string
Title:
IconPath of the icon image file. This field is only applicable if uiMetadata is set as true. -
status:
integer
Title:
StatusSpecifies if the segment is enabled, partially selected or unselected. Possible values are 0[UNCHECKED], 1[PARTIALCHECKED],2[CHECKED]. This field is only applicable if uiMetadata is set as true. -
title:
string
Title:
titleSegment label. -
variableName(required):
string
Title:
VariableNameSegment variable name.
Nested Schema : User Details
Type:
objectTitle:
Show Source
User Details-
login(required):
string
Title:
LoginUser login name.
Response
Supported Media Types
- application/json
Default Response
Group details.
Root Schema : Group
Type:
objectTitle:
GroupUser group information
Show Source
-
label:
string
Title:
Group NameGroup name -
type:
string
Title:
Group TypeType of the group -
variableName:
string
Title:
Group Variable NameVariable name of the group
Examples
The following example creates a group for the host company or partner organization based on logged in users by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/companies/visionServices/groups
Request Body Sample
{
"label": "Midwest Test Group",
"variableName": "midwestTestGroup",
"description": "Midwest Test Group",
"type": {
"value": 1,
"displayValue": "Administrator"
},
"users": {
"items": [{
"login": "superuser"
}, {
"login": "jsanchez"
}
]
},
"segments": {
"items": [{
"variableName": "_commerceAndDocuments",
"checked": false,
"segments": {
"items": [{
"variableName": "_processDefinition",
"checked": true
}, {
"variableName": "_processInvocation",
"checked": true
}, {
"variableName": "_commerceSettings",
"checked": true
}, {
"variableName": "_documents",
"checked": true
}
]
}
}, {
"variableName": "_developerTools",
"segments": {
"items": [{
"variableName": "_dataTables",
"checked": false,
"segments": {
"items": [{
"variableName": "_default",
"checked": true
}, {
"variableName": "aBOTables",
"checked": true
}
]
}
}
]
}
}, {
"variableName": "_general",
"checked": true
}, {
"variableName": "_products",
"segments": {
"items": [{
"variableName": "_catalogDefinition",
"segments": {
"items": [{
"variableName": "integration",
"checked": false
}
]
}
}
]
}
}
]
}
}
Response Body Sample
{
"label": "Midwest Test Group",
"variableName": "midwestTestGroup",
"description": "Midwest Test Group",
"company": {
"name": "Vision Services",
"login": "_host"
},
"status": {
"value": 1,
"displayValue": "Active"
},
"type": {
"value": 1,
"displayValue": "Administrator"
},
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/companies/visionServices/groups/midwestTestGroup"
}, {
"rel": "child",
"href": "https://sitename.oracle.com/rest/v19/companies/visionServices/groups/midwestTestGroup/segments"
}, {
"rel": "child",
"href": "https://sitename.oracle.com/rest/v19/companies/visionServices/groups/midwestTestGroup/users"
}
]
}