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
Path Parameters
Body ()
Root Schema : Config Menu Items
Type: object
Title: Config Menu Items
Show Source
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Config Menu Items
Type: object
Title: Config Menu Items
Show Source
Back to Top

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"
    }
  ]
}
Back to Top