Get a Group for Host Company or Partner Organization
get
/rest/v19/companies/{companyLoginName}/groups/{groupVarName}
This endpoint retrieves a group resource for a host company or partner organization.
Request
Path Parameters
-
companyLoginName(required): string
Company login name.
-
groupVarName(required): string
Variable name of the group.
Query Parameters
-
expand: string
Allows expansion of relationships.Allowed Values:
[ "users", "segments" ]
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 retrieves a group resource for a host company or partner organization by submitting a GET 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/midwestTestGroup
Response Body Sample
{
"label": "Midwest Test Group",
"variableName": "midwestTestGroup",
"description": "Midwest Test Group",
"company": {
"value": "_host",
"displayValue": "visionServices"
},
"type": {
"value": 1,
"displayValue": "Administrator"
},
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/groups/midwestTestGroup"
}, {
"rel": "child",
"href": "https://sitename.oracle.com/rest/v19/groups/midwestTestGroup/segments"
}, {
"rel": "users",
"href": "https://sitename.oracle.com/rest/v19/groups/miswestTestGroup/users"
}
]
}