updateContent

Updates the title and contentBody of the content item in the content editor of an enhanced CMS workspace. Updates are persisted when the user clicks Save in the content editor.

You can use this.context.data.schema.schema.properties to return the list of contentBody property fields for the content type.

Parameter NameTypeDescriptionRequired?
contentBodyObjectThe JSON representation of the content body, which varies depending on the content type. See JSON File Format for Content in Salesforce CMS in Salesforce Help.Yes
titleStringThe new title of the content item in the editor.Yes
  • A Promise object that resolves when the updateContent response is returned.
  • error—A validation error for invalid fields.