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

View source: R/ComplianceDocumentation.R

UpdateComplianceDocTemplateR Documentation

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

## 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)

## End(Not run)

datarobot documentation built on May 29, 2024, 4:36 a.m.