# Create a group page with the native API

1. Get an instance of the `PageManager`.   Like standard pages, group pages are also manipulated by the `PageManager`. To work with a group page, you need to get an instance of the manager.
2. Set the parent of the page.   You can add the page under any other page by passing the `parentPageNodeId` as an argument. If you pass an empty GUID the new page is created on root level.
3. Create the page.\
   You create new page using the `CreatePage` method of the `PageManager`. The method has two overloads. Set the last parameter of the method to `NodeType.Group`. \
   The method returns an object of type`PageNode`. Later, by setting the corresponding properties of the page node, you can set its name, description, title, creation date, visibility in the navigation, etc.
4. Save the changes.   Save all changes that you have made to the page using the `SaveChanges` method of the`PageManager`.

> success **EXAMPLE**: In the following code example, the `CreateGroupPageNativeAPI` method create a new group page:

```C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Telerik.Sitefinity.Abstractions;
using Telerik.Sitefinity.Modules.Pages;
using Telerik.Sitefinity.Pages.Model;

namespace Telerik.Sitefinity.Documentation.CodeSnippets.DevGuide.SitefinityEssentials.Pages
{
   public partial class PagesSnippets
   {
       public static void CreateGroupPageNativeAPI(string pageName, Guid parentPageNodeId)
       {
           PageManager manager = PageManager.GetManager();
           if (parentPageNodeId == Guid.Empty)
           {
               parentPageNodeId = SiteInitializer.CurrentFrontendRootNodeId;
           }

           PageNode parent = manager.GetPageNode(parentPageNodeId);
           var pageId = Guid.NewGuid();

           PageNode pageNode = manager.CreatePage(parent, pageId, NodeType.Group);

           pageNode.Name = pageName;
           pageNode.Description = pageName;
           pageNode.Title = pageName;
           pageNode.UrlName = pageName;
           pageNode.ShowInNavigation = true;
           pageNode.DateCreated = DateTime.UtcNow;
           pageNode.LastModified = DateTime.UtcNow;

           manager.SaveChanges();
       }
   }
}

```
