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.

  • contentBody—(Optional) The 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.
  • title—(Optional) The new title of the content item in the editor.
  • A Promise object that resolves when the updateContent response is returned.
  • error—A validation error for invalid fields.