Move a Favorite to a Folder
post
/rest/v16/favorites/{id}/actions/moveTo
This endpoint moves a favorite to a folder.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): integer
The identifier for the favorite.
Root Schema : favorites-moveToRequest
Type:
Show Source
object
-
targetFolderId:
integer
Title:
Target Folder ID
The target Folder to which the favorites will be moved to.
Response
Supported Media Types
- application/json
Default Response
Root Schema : favorites-moveToResponse
Type:
object
Examples
The following example shows how to move a favorite 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/123/actions/moveTo
Request Body Sample
{ "targetFolderId": 123 }
Response Body Sample
{ "items": [] }