Create an All Product Families Attribute Menu Item
post
/rest/v19/allProductFamilySetups/{allProdFamsVarName}/attributes/{attributeVarName}/menuItems
Use this endpoint to create a menu item for the specified All Product Families menu.
Request
Supported Media Types
- application/json
Path Parameters
-
allProdFamsVarName(required): string
Variable Name
-
attributeVarName(required): string
Variable Name of the Attribute
Root Schema : Config Menu Items
Type:
objectTitle:
Show Source
Config Menu Items-
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 -
itemText:
string
Title:
Menu Item TextText of the Menu Item -
itemValue:
string
Title:
Menu Item ValueValue of the Menu Item -
orderNumber:
integer
Title:
Order NumberOrder Number of Config Menu Item
Response
Supported Media Types
- application/json
Default Response
Root Schema : Config Menu Items
Type:
objectTitle:
Show Source
Config Menu Items-
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 -
isOverride:
string
Title:
Is OverrideMenu Item is on an overridden Config Attribute -
itemText:
string
Title:
Menu Item TextText of the Menu Item -
itemValue:
string
Title:
Menu Item ValueValue of the Menu Item -
orderNumber:
integer
Title:
Order NumberOrder Number of Config Menu Item
Examples
The following example shows how to add an All Product Families 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/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/attributes/aVPSSMDropdown1/menuItems/3023093373"
}, {
"kind": "",
"rel": "child",
"name": "images",
"href": "http://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/attributes/aVPSSMDropdown1/menuItems/3023093373/images"
}, {
"kind": "",
"rel": "child",
"name": "prices",
"href": "http://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/attributes/aVPSSMDropdown1/menuItems/3023093373/prices"
}, {
"kind": "",
"rel": "child",
"name": "translations",
"href": "http://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/attributes/aVPSSMDropdown1/menuItems/3023093373/translations"
}, {
"rel": "parent",
"href": "http://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/attributes/aVPSSMDropdown1"
}
]
}