How to rename existing Reusable content type namespace and shortcode on QA SaaS?

2025/11/19 2:28 PM

I would like to rename an existing reusable content type that has already been migrated to the Kentico SaaS QA environment.

For example, I want to rename it from Testing.ImageWithCTA to Shared.ImageWithCTA.

Is it possible to retain the same database table after the rename?

Note: Testing.ImageWithCTA already has content created in the Content Hub and is currently assigned to a page through widgets.

Below is my repository.config file that I am using for the content type rename:

<?xml version="1.0" encoding="utf-8"?>
<RepositoryConfiguration Version="2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<IncludedObjectTypes>
		<!-- Include the content type definition -->
		<ObjectType>cms.contenttype</ObjectType>
		<!-- Holds reusable field schema definitions
		required to track schema changes. -->
		<ObjectType>cms.class</ObjectType>
	</IncludedObjectTypes>
	<ExcludedObjectTypes>
		<!-- Optional: specify exclusions if needed -->
	</ExcludedObjectTypes>
	<IncludedContentItemsOfType>
		<!-- Add items of the new content type -->
		<ContentType>Shared.ImageWithCTA</ContentType>
	</IncludedContentItemsOfType>
	<ObjectFilters>
		<!-- Include only the Shared.ImageWithCTA content type definition -->
		<IncludedCodeNames ObjectType="cms.contenttype">
			Shared.ImageWithCTA
		</IncludedCodeNames>
		<!-- Include reusable field schema data -->
		<IncludedCodeNames ObjectType="cms.class">
			CMS.ContentItemCommonData
		</IncludedCodeNames>
	</ObjectFilters>
	<RestoreMode>CreateUpdate</RestoreMode>
</RepositoryConfiguration>

Could someone advise me on the appropriate approach to update the existing reusable content type?

Environment

Answers

To response this discussion, you have to login first.