Register a new type

Each service may have one or more types. There are three different type settings that the user can register. 

To register a new type to a service, perform the following:

  1. Navigate to Administration » Settings » Advanced » WebServices » Routes.
  2. Select the route to your service and click Services.
  3. Select the service, where you want to register a new type and click Types.
  4. Click Create new and select one of the following:
    • TypeSettings
      You use this type for all of the types that do not have a lifecycle.
      Fill out the following fields:
      1. In the Clr Type field, enter the actual CLR type that will be queried.
        ClrType is also the key of the item.This property is unique per service. You cannot register a type twice.
      2. In the Url name field, enter the URL of the type.
        UrlName is the third segment in the URL that is used to build up the full URL. This property is unique per service.
      3. Deselect the Enabled property, if you want not expose the type publicly.
        If you leave it selected, then the type will be exposed to the public. 
      4. In Access field, you can set specific access level for the type.
        If you leave it empty, the access level set for the service will be used. For more information, see Create a web service » Define the Access permissions.
      5. In Default page size field, specify a default page size, when no $top parameter is specified.
    • LifecycleTypeSettings
      You use this type for all the types that have a lifecycle, such as, News, Events, BlogPosts, or dynamic types.
      In addition to all field that type TypeSettings has, LifecycleTypeSettings has field Lifecycle status. This is the lifecycle status of the items that will be served.
      Enter one of the following:
      • Master
        Only items in status Master will be served.
      • Live
        Only items in status Live will be served.
  5. Save your changes.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?