The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Edit Custom Content Type Sample

Add new fields or change the properties of existing fields in custom content types using Metadata API or Tooling API. This sample adds a registration URL node to an event custom content type.

This sample is for use with Tooling API. Tooling API and Metadata API ensure that changes to custom content types are backward compatible to prevent breaking existing content. To edit custom content types with a graphical user interface, use the CMS Content Type Manager app from AppExchange.

This sample ManagedContentType JSON object defines an event custom content type.

This sample ManagedContentType JSON object adds a registration URL node to enhance the event custom content type.

In the Salesforce CMS workspace, the edited event custom content type shows the new field.

New field in the event custom content type

When editing a custom content type, these changes aren’t allowed.

  • Removing a node where the isRequired property is set to true
  • Changing the isRequired property from false to true
  • Adding a node with isRequired set to true
  • Changing a node’s nodeType or nodeName property