Update Sharing Settings for a Favorite

put

/rest/v16/favorites/{id}/sharePermissions

This endpoint updates the sharing settings for a favorite. Only the owner of the favorite or FullAccess user can update a favorite.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Favorite Share Permissions
Type: object
Title: Favorite Share Permissions
Favorite Share Permissions
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Favorite Share Permissions
Type: object
Title: Favorite Share Permissions
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

Response

Supported Media Types

Default Response

Back to Top

Examples

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

curl - X PUT - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/favorites/123/sharePermissions

Response Body Sample

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