Copy a List of Favorites to a Folder
post
/rest/v19/favorites/actions/copyTo
This endpoint copies a list of favorites to a folder.
Request
Supported Media Types
- application/json
Root Schema : favorites-copyToCollectionRequest
Type:
Show Source
object-
labels:
array Favorite Labels
Title:
Favorite LabelsList of favorite labels -
selections:
array Selected Favorite Ids
Title:
Selected Favorite IdsList of selected favorite ids -
targetFolderId:
integer
Title:
Target Folder IDThe target Folder to which the favorites will be copied to.
Nested Schema : Favorite Labels
Type:
arrayTitle:
Favorite LabelsList of favorite labels
Show Source
Nested Schema : Selected Favorite Ids
Type:
arrayTitle:
Selected Favorite IdsList of selected favorite ids
Show Source
Response
Supported Media Types
- application/json
Default Response
Root Schema : favorites-copyToCollectionResponse
Type:
Show Source
object-
ids:
array Created Favorite Ids
Title:
Created Favorite IdsList of created favorite root ids
Nested Schema : Created Favorite Ids
Type:
arrayTitle:
Created Favorite IdsList of created favorite root ids
Show Source
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 -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/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]
}
}