Learn R Programming

datarobot (version 2.16.0)

UpdateComplianceDocTemplate: Update the name or sections of an existing doc template.

Description

Note that default templates cannot be updated.

Usage

UpdateComplianceDocTemplate(templateId, name = NULL, sections = NULL)

Arguments

templateId

character. The ID of the template to update.

name

character. Optional. A new name to identify the compliance doc template by.

sections

list. Optional. Section definitions for the compliance template.

Value

The updated compliance doc template object.

Examples

Run this code
# NOT RUN {
sections <- list(list("title" = "Missing Values Report",
                      "highlightedText" = "NOTICE",
                      "regularText" = paste("This dataset had a lot of Missing Values."
                                            "See the chart below: {{missingValues}}"),
                      "type" = "user"),
                 list("title" = "Blueprints",
                      "regularText" = "{{blueprintDiagram}} /n Blueprint for this model",
                      "type" = "user"))
  templateId <- "5cf85080d9436e5c310c796d"
  UpdateComplianceDocTemplate(templateId, name = "newName", sections = sections)
# }

Run the code above in your browser using DataLab