Get List of the Selected Options from a Favorite
get
/rest/v19/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:
objectTitle:
Show Source
Favorite Items-
configAttributes:
object Configuration Attributes
Title:
Configuration AttributesConfiguration Attributes holder -
dateAdded:
string
Title:
Date AddedSystem field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date ModifiedSystem field indicating the date on which the Resource was last modified. -
id:
integer
Title:
IdPrimary Key of the resource -
isMandatory:
boolean
Title:
Is MandatoryMandatory item -
itemId:
string
Title:
Item IdId of the item -
itemName:
string
Title:
Item NameItem Name -
label:
string
Title:
Favorite NameName of the favorite -
lineBomDisplayName:
string
Title:
Bom Display NameBom Display Name -
modelName:
string
Title:
Model NameModel Name -
ownerUserEmail:
string
Title:
Owner User EmailEmail of the Owner -
ownerUserFirstName:
string
Title:
Owner User First NameFirst Name of the Owner -
ownerUserLastName:
string
Title:
Owner User Last NameLast Name of the Owner -
parentId:
integer
Title:
Parent IdId of immediate parrent -
partProps:
object Part Properties
Title:
Part PropertiesPart Properties JSON -
prefCurrencyName:
string
Title:
Prefered Currency NameName of prefered currency -
prefLanguageName:
string
Title:
Prefered Language NameName of prefered language -
price:
object Price
Title:
Pricetotal price -
priceBook:
object Price Book
Title:
Price BookAssociated Price Book -
productLineName:
string
Title:
Product Line NameProduct Line Name -
productType:
string
Title:
Product TypePart or model name -
quantity:
integer
Title:
QuantityQuantity -
refName:
string
Title:
Ref NameRef Name -
rootId:
integer
Title:
Root IdId of root favorite -
segmentName:
string
Title:
Segment NameProduct Family Name -
serialNumber:
object Serial Number
Title:
Serial NumberSerial Number -
serialNumberDescription:
object Serial Number Description
Title:
Serial Number DescriptionSerial Number Description -
status:
integer
Title:
StatusStatus of captured favorite - is it needs any update action -
subType:
integer
Title:
Sub TypeSub Type -
supplierCompanyId:
integer
Title:
Supplier Company IdSupplier Company information -
supplierCompanyName:
string
Title:
Supplier Company NameName of the Supplier Company -
sysConfigPath:
string
Title:
System Configuration PathSystem Configuration Path -
type:
integer
Title:
TypeType -
typeSpecificAttrs:
object Type Specific Attributes
Title:
Type Specific AttributesJSON of Type Specific Attributes -
userAddedFirstName:
string
Title:
User Added First NameFirst Name of the user who created the record -
userAddedLastName:
string
Title:
User Added Last NameLast Name of the user who created the record -
userModifiedFirstName:
string
Title:
User Modified First NameFirst Name of the user who last modified the record -
userModifiedLastName:
string
Title:
User Modified Last NameLast Name of the user who last modified the record
Nested Schema : Configuration Attributes
Type:
objectTitle:
Configuration AttributesConfiguration Attributes holder
Nested Schema : Part Properties
Type:
objectTitle:
Part PropertiesPart Properties JSON
Nested Schema : Price
Type:
objectTitle:
Pricetotal price
Show Source
-
currency:
string
Title:
currency -
value:
number
Title:
value
Nested Schema : Price Book
Type:
objectTitle:
Price BookAssociated Price Book
Show Source
-
name:
string
Title:
NamePrice book name -
variableName:
string
Title:
Variable NameUnique name for price book
Nested Schema : Serial Number
Type:
objectTitle:
Serial NumberSerial Number
Nested Schema : Serial Number Description
Type:
objectTitle:
Serial Number DescriptionSerial Number Description
Nested Schema : Type Specific Attributes
Type:
objectTitle:
Type Specific AttributesJSON 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 -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/favorites/9100006903/subItems
Response Body Sample
{
"hasMore": false,
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/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/v19/priceBooks"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/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/v19/favorites/9100006903/subItems/9100006907"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/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/v19/priceBooks"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/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/v19/favorites/9100006903/subItems/9100006908"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/favorites/9100006903"
}
]
}
]
}