Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

HomeDev GuideRecipesAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Synchronize from Optimizely Content Management System

Sync content and content types with the Optimizely Content Delivery API when using the Optimizely GraphQL API querying service.

Sync content types and data on your Optimizely Content Management System (CMS) site to the service. You can maintain synchronization through event triggers and as a scheduled job. In general, you want to choose event-driven synchronization.

The synchronization job serializes content and content types before sending them to the service using the Content Delivery API. If you have customized the Optimizely Content Delivery API, the Optimizely Graph service reflects those changes.

The synchronization job also synchronizes the site definition information. It creates a new content type named SiteDefinition that stores information about the start page of the site and the languages that exist on the site.

SiteDefinition content type contains information such as Start Page, languages, host of the site, the global assets root, and the assets root used by this site.

🚧

Important

The SiteDefintion cannot have multiple content types with the same name. The content type's name must follow the grammatical form as explained by the GraphQL specification. Names in Graph QL:

  • Are case-sensitive.
  • Can only start with a letter and may start with a single underscore.
  • Can only consist of Latin letters, Latin numbers, and underscores, which are significant.