Create a Product Family Attribute Menu Item
post
/rest/v19/allProductFamilySetups/{allProdFamsVarName}/productFamilies/{prodFamVarName}/attributes/{attributeVarName}/menuItems
Use this endpoint to create a menu item for the specified Product Family menu.
Request
Supported Media Types
- application/json
Path Parameters
-
allProdFamsVarName(required): string
Variable Name
-
attributeVarName(required): string
Variable Name of the Attribute
-
prodFamVarName(required): string
Variable Name
Root Schema : Config Menu Items
Type:
object
Title:
Show Source
Config Menu Items
-
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 -
itemText:
string
Title:
Menu Item Text
Text of the Menu Item -
itemValue:
string
Title:
Menu Item Value
Value of the Menu Item -
orderNumber:
integer
Title:
Order Number
Order Number of Config Menu Item
Response
Supported Media Types
- application/json
Default Response
Root Schema : Config Menu Items
Type:
object
Title:
Show Source
Config Menu Items
-
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 -
isOverride:
string
Title:
Is Override
Menu Item is on an overridden Config Attribute -
itemText:
string
Title:
Menu Item Text
Text of the Menu Item -
itemValue:
string
Title:
Menu Item Value
Value of the Menu Item -
orderNumber:
integer
Title:
Order Number
Order Number of Config Menu Item
Examples
The following example shows how to add a Product Family menu item by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/testbed/attributes/aVPSSMDropdown1/menuItems
Request Body Sample
{ "orderNumber": 3, "itemValue": "thirdValue", "itemText": "Three." }
Response Body Sample
{ "orderNumber": 3, "itemValue": "thirdValue", "isOverride": "false", "dateModified": "2023-11-16T17:02:24.000Z", "id": 3023093373, "dateAdded": "2023-11-16T17:02:24.000Z", "itemText": "Three.", "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/testbed/attributes/aVPSSMDropdown1/menuItems/3023093373" }, { "kind": "", "rel": "child", "name": "images", "href": "http://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/testbed/attributes/aVPSSMDropdown1/menuItems/3023093373/images" }, { "kind": "", "rel": "child", "name": "prices", "href": "http://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/testbed/attributes/aVPSSMDropdown1/menuItems/3023093373/prices" }, { "kind": "", "rel": "child", "name": "translations", "href": "http://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/testbed/attributes/aVPSSMDropdown1/menuItems/3023093373/translations" }, { "rel": "parent", "href": "http://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/testbed/attributes/aVPSSMDropdown1" } ] }