Get User's List of Favorites
get
/rest/v16/favorites
This endpoint returns a list of all favorites available to the user.
Request
Supported Media Types
- application/json
Query Parameters
-
excludeLinks: string
Exclude links from the response.
-
fields: string
A list of fields to be returned.
-
finder: string
Specifies the category for the favorite; personal (myFavorites), company (companyFavorites), or shared by other users (sharedWithMeFavorites).
-
limit: integer
Specifies the pagination limit, up to 1000. If no limit is specified or if a limit greater than 1000 is specified, a pagination limit of 1000 will be used.
-
offset: integer
Specifies the offset in the record set to start the response from. Usually used in conjunction with limit parameter to obtain the next set of records.
-
orderby: string
Specifies a comma-separated list of fields to order the response by.
-
q: string
Declares a query specification expression.
-
totalResults: boolean
Specifies that the total count of records should be included in the response when doing pagination. Only effective when limit or offset are specified.
Response
Supported Media Types
- application/json
Default Response
Root Schema : favorites-collection
Type:
Show Source
object
-
count:
integer
The number of resource instances returned in the current range.
-
hasMore:
boolean
Returns true if more resources are available on the server than the subset returned in current page.
-
items:
array items
-
limit:
integer
The actual paging size used by the server. If no limit was specified or if a limit greater than 1000 is specified, a pagination limit of 1000 will be used.
-
offset:
integer
The offset used in the current page.
-
totalResults:
integer
Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested 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 a list of favorites by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v16/favorites
Sample Endpoint with Decoded Query Parameters
https://sitename.oracle.com/rest/v16/favorites?limit=50&offset=0&totalResults=true&finder=myFavorites&q=folderId:{$ne:6992502},$or[{"label":$like:"%@%",$options:'I'}}]}
Response Body Sample
{ "hasMore": false, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/favorites" } ], "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/v16/priceBooks" }, { "rel": "canonical", "href": "https://sitename.oracle.com/rest/v16/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/v16/favorites/3022619257" }, { "kind": "", "rel": "child", "name": "sharePermissions", "href": "https://sitename.oracle.com/rest/v16/favorites/3022619257/sharePermissions" }, { "kind": "", "rel": "child", "name": "subItems", "href": "https://sitename.oracle.com/rest/v16/favorites/3022619257/subItems" } ] }, { "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.com/rest/v16/priceBooks" }, { "rel": "canonical", "href": "https://sitename.oracle.com/rest/v16/priceBooks/_default_price_book" } ] }, "itemName": " car2", "prefLanguageName": "English", "isFolderShared": false, "price": { "value": -1.0, "currency": "USD" }, "id": 3022619257, "refName": "partpriority:car2", "isMandatory": false, "visibilityType": 3, "serialNumber": null, "userModifiedLastName": null, "folderId": "6992501", "sysNavInfo": {}, "userModifiedFirstName": "John", "itemId": "12466079", "productLineName": "Car 2", "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": "Testbed", "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": "ESUV200", "sysNavError": null, "supplierCompanyName": "ABC Company", "ownerUserKey": "bd6172e3-71b6-4b4d-a2c9-41c82e3e707c", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/favorites/3022619257" }, { "kind": "", "rel": "child", "name": "sharePermissions", "href": "https://sitename.oracle.com/rest/v16/favorites/3022619257/sharePermissions" }, { "kind": "", "rel": "child", "name": "subItems", "href": "https://sitename.oracle.com/rest/v16/favorites/3022619257/subItems" } ] } ] }