Copy a Favorite
post
/rest/v16/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 favorite
The new label for the copy of current favorite -
targetFolderId:
integer
Title:
Target Folder ID
The 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 Ids
List of created favorite root ids
Nested Schema : Created Favorite Ids
Type:
array
Title:
Created Favorite Ids
List 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 - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v16/favorites/123/actions/copyTo
Request Body Sample
{ "targetFolderId": 123, "label": "copy of fav" }
Response Body Sample
{ "result": { "ids": [3023768871] } }