Show examples in:
    Create a new schema menu item

    Body Parameters

    id  string  Optional
    RFC 4122 UUID of schema menu item expressed in URL-safe base64 format
    label  Required  null, string  Example: "Posts"

    The label of the schema menu item (only present when the schema menu item is not linked to an item type)

    kind  Required  enum  Example: "item_type"

    Indicates if the schema menu item refers to an item type or a modular block

    position  Optional  integer  Example: 1

    Ordering index

    item_type  Optional  { type: "item_type", id: }, null

    Item type associated with the menu item

    parent  Optional  null, { type: "schema_menu_item", id: }

    Parent schema menu item


    Returns a schema_menu_item resource object.


    Example Basic example
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const schemaMenuItem = await client.schemaMenuItems.create({
    label: 'Posts',
    kind: 'item_type'