Copy a List of Favorites to a Folder

post

/rest/v16/favorites/actions/copyTo

This endpoint copies a list of favorites to a folder.

Request

Supported Media Types
Body ()
Root Schema : favorites-copyToCollectionRequest
Type: object
Show Source
Nested Schema : Favorite Labels
Type: array
Title: Favorite Labels
List of favorite labels
Show Source
Nested Schema : Selected Favorite Ids
Type: array
Title: Selected Favorite Ids
List of selected favorite ids
Show Source
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : favorites-copyToCollectionResponse
Type: object
Show Source
Nested Schema : Created Favorite Ids
Type: array
Title: Created Favorite Ids
List of created favorite root ids
Show Source
Back to Top

Examples

The following example shows how to copy a list of favorites to a folder by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X POST - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/favorites/actions/copyTo

Request Body Sample

{
  "selections": [123, 124],
  "targetFolderId": 991,
  "labels": ["copy of 123", "copy of 124"]
}

Response Body Sample

{
  "result": {
    "ids": [3023768871, 3023768873]
  }
}
Back to Top