Copy a Favorite
post
/rest/v19/favorites/{id}/actions/copyTo
This endpoint copies a favorite.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): integer
The identifier for the favorite.
Root Schema : favorites-copyToRequest
Type:
Show Source
object-
label:
string
Title:
The label for the copy of current favoriteThe new label for the copy of current favorite -
targetFolderId:
integer
Title:
Target Folder IDThe target Folder to which the favorites will be copied to.
Response
Supported Media Types
- application/json
Default Response
Root Schema : favorites-copyToResponse
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 favorite 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/123/actions/copyTo
Request Body Sample
{
"targetFolderId": 123,
"label": "copy of fav"
}Response Body Sample
{
"result": {
"ids": [3023768871]
}
}