Get Sharing Settings for a Favorite

get

/rest/v19/favorites/{id}/sharePermissions

This endpoint returns the sharing settings for a favorite.

Request

Supported Media Types
Path Parameters
Query Parameters
  • A list of fields to be returned.
  • Specifies the pagination limit, up to 1000. If no limit is specified or if a limit greater than 1000 is specified, a pagination limit of 1000 will be used.
  • Specifies the offset in the record set to start the response from. Usually used in conjunction with limit parameter to obtain the next set of records.
  • Specifies a comma-separated list of fields to order the response by.
  • Declares a query specification expression.
  • Specifies that the total count of records should be included in the response when doing pagination. Only effective when limit or offset are specified.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : favoriteSharePermissions-collection
Type: object
Show Source
  • The number of resource instances returned in the current range.
  • Returns true if more resources are available on the server than the subset returned in current page.
  • items
  • The actual paging size used by the server. If no limit was specified or if a limit greater than 1000 is specified, a pagination limit of 1000 will be used.
  • The offset used in the current page.
  • Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : items
Type: array
Show Source
Nested Schema : Favorite Share Permissions
Type: object
Title: Favorite Share Permissions
Show Source
Nested Schema : Sharing Access Level
Type: object
Title: Sharing Access Level
Access Level of the Shared user or Group
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Favorite ID
Type: object
Title: Favorite ID
ID of the favorite
Show Source
Nested Schema : Group ID
Type: object
Title: Group ID
ID of the Group of users the favorite is shared with
Show Source
Nested Schema : User ID
Type: object
Title: User ID
ID of the user with whom the favorite is shared with
Show Source
Back to Top

Examples

The following example shows how to retrieve the sharing settings for a favorite by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X GET -H "Authorization: Bearer <token>" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v19/favorites/123/sharePermissions

Response Body Sample

{{
  "items": [{
      "accessLevel": {
        "lookupCode": "1"
      },
      "userId": {
        "key": "abcd-efgh"
      }
    }, {
      "accessLevel": {
        "lookupCode": "1"
      },
      "groupId": {
        "id": 21081266
      }
    }
  ]
}

Back to Top