GET
/
api
/
v2
/
platform
/
menu_items
/
{id}
curl --request GET \
  --url http://{defaultHost}/api/v2/platform/menu_items/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": "30",
    "type": "menu_item",
    "attributes": {
      "name": "Link no. 25 To Somewhere",
      "subtitle": null,
      "destination": null,
      "new_window": false,
      "item_type": "Link",
      "linked_resource_type": "Spree::Linkable::Uri",
      "code": null,
      "lft": 8,
      "rgt": 9,
      "depth": 1,
      "created_at": "2022-11-08T19:34:24.785Z",
      "updated_at": "2022-11-08T19:34:24.788Z",
      "link": null,
      "is_container": false,
      "is_root": false,
      "is_child": true,
      "is_leaf": true
    },
    "relationships": {
      "icon": {
        "data": {
          "id": "36",
          "type": "icon"
        }
      },
      "menu": {
        "data": {
          "id": "5",
          "type": "menu"
        }
      },
      "parent": {
        "data": {
          "id": "26",
          "type": "menu_item"
        }
      },
      "linked_resource": {
        "data": null
      },
      "children": {
        "data": []
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Query Parameters

include
string

Select which associated resources you would like to fetch, see: <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>

Response

200
application/vnd.api+json
Record found
data
object
required