Get List of the Selected Options from a Favorite
get
/rest/v16/favorites/{rootId}/subItems
This endpoint returns the list of selected options of an individual favorite.
Request
Supported Media Types
- application/json
Path Parameters
-
rootId(required): integer
The identifier for the parent favorite.
Query Parameters
-
fields: string
Restrict which fields shall be returned. The value is a comma delimited string and each token is a field name.
-
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 : favoriteItems-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 : Favorite Items
Type:
object
Title:
Show Source
Favorite Items
-
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. -
id:
integer
Title:
Id
Primary Key of the resource -
isMandatory:
boolean
Title:
Is Mandatory
Mandatory item -
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 -
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:
object Serial Number
Title:
Serial Number
Serial Number -
serialNumberDescription:
object Serial Number Description
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 -
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
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 : Serial Number
Type:
object
Title:
Serial Number
Serial Number
Nested Schema : Serial Number Description
Type:
object
Title:
Serial Number Description
Serial Number Description
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 list of selected options of an individual favorite 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/9100006903/subItems
Response Body Sample
{ "hasMore": false, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/favorites/9100006903/subItems" } ], "items": [{ "type": 3, "lineBomDisplayName": "part12", "ownerUserEmail": "john.jones@oracle.com", "dateAdded": "2022-03-01T02:45:00.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": "part12", "prefLanguageName": "English", "price": { "value": 12.0, "currency": "USD" }, "id": 9100006907, "refName": "part12", "isMandatory": true, "serialNumber": null, "userModifiedLastName": null, "userModifiedFirstName": "John", "itemId": "8523095", "productLineName": null, "subType": 2, "status": 0, "supplierCompanyId": 4118171, "rootId": 9100006903, "typeSpecificAttrs": null, "configAttributes": null, "userAddedLastName": null, "sysConfigPath": "_root:::part12::0::0", "productType": "Part", "ownerUserLastName": null, "quantity": 1, "dateModified": "2022-03-01T02:48:15.000Z", "partProps": { "Part Number": "part12", "Part Lead Time": "N/A", "Part Description": "", "Line BOM Display Name": "part12", "Part Type (Custom Field 9)": "100K Parts", "String (Custom Field 1)": "String", "String Filter (Custom Field 4)": "", "Float (Custom Field 5)": "0.0", "Float Filter (Custom Field 6)": "0.0", "Integer (Custom Field 7)": "0", "SSM (Custom Field 2)": "Value 1 Label", "SSM Filter (Custom Field 8)": "", "MSM (Custom Field 16)": "", "MSM Filter (Custom Field 17)": "", "Page Specific Label (Custom Field 3)": "", "Required String (Custom Field 10)": "Custom Field 10, part12", "Required SSM (Custom Field 11)": "Required value", "Custom Field 13": "Custom Field 13, part12", "Custom Field 14": "Custom Field 14, part12", "Custom Field 15": "Custom Field 15, part12", "Custom Field 18": "Custom Field 18, part12", "Custom Field 19": "Custom Field 19, part12", "Custom Field 20": "Custom Field 20, part12", "Custom Field 21": "Custom Field 21, part12", "Custom Field 22": "Custom Field 22, part12", "Custom Field 23": "Custom Field 23, part12", "Custom Field 24": "Custom Field 24, part12", "Custom Field 25": "Custom Field 25, part12", "Custom Field 26": "Custom Field 26, part12", "Custom Field 27": "Custom Field 27, part12", "Custom Field 30": "Custom Field 30, part12" }, "label": "Part", "parentId": 9100006903, "segmentName": null, "modelName": null, "supplierCompanyName": "abcCompany", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/favorites/9100006903/subItems/9100006907" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v16/favorites/9100006903" } ] }, { "type": 3, "lineBomDisplayName": "part14", "ownerUserEmail": "john.jones@oracle.com", "dateAdded": "2022-03-01T02:45:00.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": "part14", "prefLanguageName": "English", "price": { "value": 14.0, "currency": "USD" }, "id": 9100006908, "refName": "part14", "isMandatory": true, "serialNumber": null, "userModifiedLastName": null, "userModifiedFirstName": "John", "itemId": "8523099", "productLineName": null, "subType": 2, "status": 0, "supplierCompanyId": 4118171, "rootId": 9100006903, "typeSpecificAttrs": null, "configAttributes": null, "userAddedLastName": null, "sysConfigPath": "_root:::part12::0::0:::part14::0::0", "productType": "Part", "ownerUserLastName": null, "quantity": 1, "dateModified": "2022-03-01T02:48:15.000Z", "partProps": { "Part Number": "part14", "Part Lead Time": "N/A", "Part Description": "", "Line BOM Display Name": "part14", "Part Type (Custom Field 9)": "100K Parts", "String (Custom Field 1)": "String", "String Filter (Custom Field 4)": "", "Float (Custom Field 5)": "0.0", "Float Filter (Custom Field 6)": "0.0", "Integer (Custom Field 7)": "0", "SSM (Custom Field 2)": "Value 1 Label", "SSM Filter (Custom Field 8)": "", "MSM (Custom Field 16)": "", "MSM Filter (Custom Field 17)": "", "Page Specific Label (Custom Field 3)": "", "Required String (Custom Field 10)": "Custom Field 10, part14", "Required SSM (Custom Field 11)": "Required value", "Custom Field 13": "Custom Field 13, part14", "Custom Field 14": "Custom Field 14, part14", "Custom Field 15": "Custom Field 15, part14", "Custom Field 18": "Custom Field 18, part14", "Custom Field 19": "Custom Field 19, part14", "Custom Field 20": "Custom Field 20, part14", "Custom Field 21": "Custom Field 21, part14", "Custom Field 22": "Custom Field 22, part14", "Custom Field 23": "Custom Field 23, part14", "Custom Field 24": "Custom Field 24, part14", "Custom Field 25": "Custom Field 25, part14", "Custom Field 26": "Custom Field 26, part14", "Custom Field 27": "Custom Field 27, part14", "Custom Field 30": "Custom Field 30, part14" }, "label": "Part", "parentId": 9100006907, "segmentName": null, "modelName": null, "supplierCompanyName": "abcCompany", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/favorites/9100006903/subItems/9100006908" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v16/favorites/9100006903" } ] } ] }