Initialize content synchronization
POST https://deliver.kontent.ai/:environment_id/sync/init
Initializes synchronization of changes in content items based on the specified parameters. After the initialization, you'll get the X-Continuation token found in the HTTP headers. Use the token to synchronize changes in the content items matching the initialization criteria.
If you don't specify any initialization parameters, content synchronization will be initialized for all content items in all languages in the specified environment.
You can follow the rest of the steps on how to sync changes.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
system.type | string | Specifies the content types of the content items you want to sync. The content types are specified using their codenames. Check the available filtering operators you can use. |
If the content type codename is changed after the initialization, you need to initialize a new sync. For example, if you sync changes for items based on the type article and the type codename is later renamed to news_article, there won't be any content items based on the type article anymore. In such case, the API returns an empty response. |
| system.collection | string | | Specifies the collections of the content items you want to sync. The collections are specified using their codenames. Check the available filtering operators you can use.
If you filter your sync to a specific collection, content items moved outside that collection won't appear in API response. For example, if you sync changes for items in the Default collection and a content item moves to an other collection, the content item is no longer in the Default collection and doesn't match the initial sync criteria. |
| language | string | | Determines the language of content items you want to sync. Language is specified using its codename. If you omit language, the synchronization is initialized for content items in all languages.
Sync API follows language fallbacks as configured in the Localization settings. This means the API might return changes in content items outside the specified language. For example, when you sync content items in Spanish and the Spanish language falls back to English, you can get changes for English content items if some of the content items aren't translated to Spanish yet. |
| system.language | string | | Determines the language of the content items you want to sync. Language is specified using its codename. The API returns changes only for content items in the specified language. Language fallbacks are ignored.
If you omit system.language, the synchronization is initialized for content items in all languages. |
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Accept | string |
RESPONSES
status: OK
{}