Find by reference key

get

/km/api/v1/userGroups/referenceKey/{referenceKey}

This method returns a UserGroup object having the specific reference key.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : UserGroup
Match All
Show Source
Nested Schema : UserGroupData
Match All
Show Source
Nested Schema : UserGroupKey
Match All
Show Source
Nested Schema : Singular Resource
Type: object
Title: Singular Resource
Oracle base singular resource schema definition.
Show Source
Nested Schema : UserGroupKey-allOf[1]
Type: object
Show Source
Nested Schema : UserGroupData-allOf[1]
Type: object
Show Source
Back to Top

Examples

The following example shows how to find an User Group by an unique reference key by submitting a get request on the REST resource using cURL.

cURL Command

curl -X "GET" "http://<IM_REST_API_HOST>/km/api/latest/userGroups/referenceKey/{referenceKey}"

Example of Request Header

The following shows an example of the request header.

-H "kmauthtoken: {\"siteName\":\"ORACLE_KNOWLEDGE\",\"integrationUserToken\":\"\"+eCJYkxKwj5HUaIiJYun0/TpatwT1LmtcsF05W33xnEojifV/AsLDj9RpN0lKuorTMNKeSE1tgC7svVL+BzntqDON4KiM1HFlpxvXEUCB0P2w0Xrs75McygqxdVaDSE9"}" \
-H "Accept: application/json"

Example of Response Body

The following shows an example of the response body in JSON format.

{
  "referenceKey" : "REFERENCEKEY_VALUE",
  "name" : "NAME_VALUE",
  "externalId" : 1428417268185,
  "externalType" : "EXTERNALTYPE_VALUE",
  "links" : [ {
    "rel" : "canonical",
    "href" : "http://<IM_REST_API_HOST>/km/api/{version}/{resourceURI}",
    "mediaType" : "application/json, application/xml",
    "templated" : true,
    "method" : "GET",
    "profile" : "http://<IM_REST_API_HOST>/km/api/{version}/metadata-catalog/{resourceName}"
  } ],
  "dateAdded" : "2013-04-23T21:06:19EDT",
  "dateModified" : "2013-04-23T21:06:19EDT",
  "description" : "DESCRIPTION_VALUE"
}
Back to Top