Get a Favorite
get
/rest/v19/favorites/{id}
This endpoint returns a list of all favorites available to the user.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): integer
The identifier for the favorite.
Query Parameters
-
expand: string
Return child resource details.
-
finder: string
Specifies the category for the favorite; personal (myFavorites), company (companyFavorites), or shared by other users (sharedWithMeFavorites).
Response
Supported Media Types
- application/json
Default Response
Root Schema : Favorites
Type:
object
Title:
Show Source
Favorites
-
activeActions:
object Active Actions
Title:
Active Actions
List of active action variable names -
buyerCompanyId:
integer
Title:
Buyer Company Id
Id of the company owner user belongs to -
configAttributes:
object Configuration Attributes
Title:
Configuration Attributes
Configuration Attributes holder -
dateAdded:
string
Title:
Date Added
System field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date Modified
System field indicating the date on which the Resource was last modified. -
description:
string
Title:
Description
Description of the favorite -
folderId:
string
Title:
Folder Id
Id of the Associated Folder -
folderName:
string
Title:
Folder Name
Name of the folder -
id:
integer
Title:
Id
Primary Key of the resource - isFolderShared: boolean
-
isMandatory:
boolean
Title:
Is Mandatory
Mandatory item -
isReadOnly:
boolean
Title:
Is Read Only
Favorite is not updatable -
itemId:
string
Title:
Item Id
Id of the item -
itemName:
string
Title:
Item Name
Item Name -
label:
string
Title:
Favorite Name
Name of the favorite -
lineBomDisplayName:
string
Title:
Bom Display Name
Bom Display Name -
modelName:
string
Title:
Model Name
Model Name -
ownerUserEmail:
string
Title:
Owner User Email
Email of the Owner -
ownerUserFirstName:
string
Title:
Owner User First Name
First Name of the Owner -
ownerUserKey:
string
Title:
Owner User Key
Unique string identifiyng the Owner -
ownerUserLastName:
string
Title:
Owner User Last Name
Last Name of the Owner -
parentId:
integer
Title:
Parent Id
Id of immediate parrent -
partProps:
object Part Properties
Title:
Part Properties
Part Properties JSON -
prefCurrencyName:
string
Title:
Prefered Currency Name
Name of prefered currency -
prefLanguageName:
string
Title:
Prefered Language Name
Name of prefered language -
price:
object Price
Title:
Price
total price -
priceBook:
object Price Book
Title:
Price Book
Associated Price Book -
productLineName:
string
Title:
Product Line Name
Product Line Name -
productType:
string
Title:
Product Type
Part or model name -
quantity:
integer
Title:
Quantity
Quantity -
refName:
string
Title:
Ref Name
Ref Name -
rootId:
integer
Title:
Root Id
Id of root favorite -
segmentName:
string
Title:
Segment Name
Product Family Name -
serialNumber:
string
Title:
Serial Number
Serial Number -
serialNumberDescription:
string
Title:
Serial Number Description
Serial Number Description -
status:
integer
Title:
Status
Status of captured favorite - is it needs any update action -
subType:
integer
Title:
Sub Type
Sub Type -
supplierCompanyId:
integer
Title:
Supplier Company Id
Supplier Company information -
supplierCompanyName:
string
Title:
Supplier Company Name
Name of the Supplier Company -
sysConfigPath:
string
Title:
System Configuration Path
System Configuration Path - sysNavError: string
- sysNavInfo: object System Navigation Info
-
type:
integer
Title:
Type
Type -
typeSpecificAttrs:
object Type Specific Attributes
Title:
Type Specific Attributes
JSON of Type Specific Attributes -
userAddedFirstName:
string
Title:
User Added First Name
First Name of the user who created the record -
userAddedLastName:
string
Title:
User Added Last Name
Last Name of the user who created the record -
userModifiedFirstName:
string
Title:
User Modified First Name
First Name of the user who last modified the record -
userModifiedLastName:
string
Title:
User Modified Last Name
Last Name of the user who last modified the record -
visibilityType:
integer
Title:
Visibility Type
Is it visibile to current user because it is owned by him, shared to him through folder or shared to him via permission
Nested Schema : Active Actions
Type:
object
Title:
Active Actions
List of active action variable names
Nested Schema : Configuration Attributes
Type:
object
Title:
Configuration Attributes
Configuration Attributes holder
Nested Schema : Part Properties
Type:
object
Title:
Part Properties
Part Properties JSON
Nested Schema : Price
Type:
object
Title:
Price
total price
Show Source
-
currency:
string
Title:
currency
-
value:
number
Title:
value
Nested Schema : Price Book
Type:
object
Title:
Price Book
Associated Price Book
Show Source
-
name:
string
Title:
Name
Price book name -
variableName:
string
Title:
Variable Name
Unique name for price book
Nested Schema : Type Specific Attributes
Type:
object
Title:
Type Specific Attributes
JSON of Type Specific Attributes
Examples
The following example shows how to retrieve the specified favorite by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X GET -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/favorites/3022619257
Response Body Sample
{ "items": [{ "type": 2, "lineBomDisplayName": null, "ownerUserEmail": "john.jones@oracle.com", "dateAdded": "2022-02-16T21:46:23.000Z", "ownerUserFirstName": "John", "userAddedFirstName": "John", "prefCurrencyName": "US Dollar", "serialNumberDescription": null, "priceBook": { "variableName": "_default_price_book", "name": "Base Price", "links": [{ "rel": "domain", "href": "https://sitename.oracle.com/rest/v19/priceBooks" }, { "rel": "canonical", "href": "https://sitename.oracle.com/rest/v19/priceBooks/_default_price_book" } ] }, "itemName": "car1", "prefLanguageName": "English", "isFolderShared": false, "price": { "value": -1.0, "currency": "USD" }, "id": 3022619257, "refName": "partpriority:car1", "isMandatory": false, "visibilityType": 3, "serialNumber": null, "userModifiedLastName": null, "folderId": "6992501", "sysNavInfo": {}, "userModifiedFirstName": "John", "itemId": "12466079", "productLineName": "Car 1", "subType": 0, "folderName": "[Default]", "status": 1, "supplierCompanyId": 4118171, "rootId": 3022619257, "typeSpecificAttrs": null, "description": null, "isReadOnly": false, "configAttributes": { "_config_upgrade_name": { "name": "Config Upgrade Name", "value": "" }, "_configuration_id": { "name": "Configuration Id", "value": "" }, "systemConfigModelPath": { "name": "System Config Model Path", "value": "" }, "_array_key_searchFlowArrayControl": { "name": "searchFlowArrayControl array key", "value": "[1] = 2fcab1c3-4563-4fca-8abf-54a2890f63af" }, "_array_key_numberOfItems1": { "name": "numberOfItems1 array key", "value": "[1] = f62f4bc9-3ce4-4306-84ab-afd48cffcf58" }, "ruleActionType": { "name": "Rule Action Type", "value": "Advanced action, hardcoded" }, "numberOfLineItems": { "name": "Number of Line Items", "value": "3" } }, "isShareable": true, "userAddedLastName": null, "sysConfigPath": null, "productType": "Economy SUV", "ownerUserLastName": null, "quantity": 1, "activeActions": ["copyTo", "reconfigure", "moveTo"], "dateModified": "2022-02-17T21:07:31.000Z", "partProps": null, "label": "Model", "buyerCompanyId": 4118171, "parentId": -1, "segmentName": "Economy SUV", "modelName": "ESUV100", "sysNavError": null, "supplierCompanyName": "ABC Company", "ownerUserKey": "bd6172e3-71b6-4b4d-a2c9-41c82e3e707c", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v19/favorites/3022619257" }, { "kind": "", "rel": "child", "name": "sharePermissions", "href": "https://sitename.oracle.com/rest/v19/favorites/3022619257/sharePermissions" }, { "kind": "", "rel": "child", "name": "subItems", "href": "https://sitename.oracle.com/rest/v19/favorites/3022619257/subItems" } ] } ] }