Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback. 

How to remove a property using the Content Definitions API

Vote:
 

Hi,

As the title suggests. How do I remove a property from a content type using the Content Definitions API?

Please note: the question applies to content types that have content items AND where the property I wish to remove has a value.

Have tried:

  1. Semantic versioning on|off
  2. Providing different versions in the payload.
  3. Using the query parameters "allowedUpgrades=major" and "allowedDowngrades=major"

Thanks in advance.

#335722
Edited, Jan 16, 2025 17:09
Vote:
 

Hey Emil,

can you provide some more details on the HTTP requests and payload you sent? Helps to provide some more guidance. Usually you should be able to just GET the contenttypes from the endpoint, and PUT the updated payload with the removed property to the endpoint. The important part is point 3, that you dont forget to allow the breaking schema change, but it seems like youre doing that.

#336038
Jan 24, 2025 11:04
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.