# Compliance documentation
URL: https://docs.datarobot.com/en/docs/api/reference/public-api/compliance_documentation.html

> DataRobot automates many critical compliance tasks associated with developing a model and, by doing so, decreases the time-to-deployment in highly regulated industries. You can generate, for each model, individualized documentation to provide comprehensive guidance on what constitutes effective model risk management. Then, you can download the report as an editable Microsoft Word document (.docx). The generated report includes the appropriate level of information and transparency necessitated by regulatory compliance demands.

# Compliance documentation

DataRobot automates many critical compliance tasks associated with developing a model and, by doing so, decreases the time-to-deployment in highly regulated industries. You can generate, for each model, individualized documentation to provide comprehensive guidance on what constitutes effective model risk management. Then, you can download the report as an editable Microsoft Word document (.docx). The generated report includes the appropriate level of information and transparency necessitated by regulatory compliance demands.

## List all available document types

Operation path: `GET /api/v2/automatedDocumentOptions/`

Authentication requirements: `BearerAuth`

Check which document types and locales are available for generation with your account.

### Example responses

> 200 Response

```
{
  "properties": {
    "data": {
      "description": "List of document types available for generation.",
      "items": {
        "properties": {
          "documentType": {
            "description": "Type of document available for generation.",
            "enum": [
              "AUTOPILOT_SUMMARY",
              "MODEL_COMPLIANCE",
              "DEPLOYMENT_REPORT",
              "MODEL_COMPLIANCE_GEN_AI"
            ],
            "type": "string",
            "x-enum-versionadded": [
              {
                "value": "DEPLOYMENT_REPORT",
                "x-versionadded": "v2.24"
              },
              {
                "value": "MODEL_COMPLIANCE_GEN_AI",
                "x-versionadded": "v2.35"
              }
            ]
          },
          "locale": {
            "description": "Locale available for the document generation.",
            "enum": [
              "EN_US",
              "JA_JP"
            ],
            "type": "string"
          }
        },
        "required": [
          "documentType",
          "locale"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "data"
  ],
  "type": "object"
}
```

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | OK | Available document types and locales retrieved. | AutomatedDocOptionsResponse |

## List all generated documents

Operation path: `GET /api/v2/automatedDocuments/`

Authentication requirements: `BearerAuth`

Get information about all previously generated documents available for your account. The
information includes document ID and type, ID of the entity it was generated for, time of
creation, and other information.

Example request to get a list of all documents:

.. code-block:: text

```
GET https://app.datarobot.com/api/v2/automatedDocuments/ HTTP/1.1
Authorization: Bearer DnwzBUSTOtKBO5Sp1hoUByG4YgZwCCw4
```

Query for specific documents. For example, request a list of documents
generated for a specific model in `docx` and `html` formats:

.. code-block:: text

```
GET https://app.datarobot.com/api/v2/automatedDocuments?entityId=
5ec4ea7e41054c158c5b002f&outputFormat=docx&outputFormat=html HTTP/1.1
Authorization: Bearer DnwzBUSTOtKBO5Sp1hoUByG4YgZwCCw4
```

In response body, you will get a page with queried documents. This is an example response
with one document returned:

.. code-block:: json

```
{
    "totalCount": 1,
    "count": 1,
    "previous": null,
    "next": null,
    "data": [
        {
            "id": "5ebdb5e911a5fb85edff2b3c",
            "documentType": "MODEL_COMPLIANCE",
            "entityId": "5ebbb5e7d9d7b96e3d48e3b5",
            "templateId": "5bd812e5f750edd392fa880f",
            "locale": "EN_US",
            "outputFormat": "DOCX",
            "createdAt": "2019-11-07T11:12:13.141516Z"
        }
    ]
}
```

If there are no matching documents, you will get a page with an empty data array.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| offset | query | integer | true | Number of items to skip. Defaults to 0 if not provided. |
| limit | query | integer | true | Number of items to return, defaults to 100 if not provided. |
| documentType | query | any | false | Query for one or more document types. |
| outputFormat | query | any | false | Query for one or more output formats. |
| locale | query | any | false | Query generated documents by one or more locales. |
| entityId | query | any | false | Query generated documents by one or more entity IDs. For Model Compliance docs, the entity ID is a model ID. For Autopilot Summary reports, query by project IDs. |

### Example responses

> 200 Response

```
{
  "properties": {
    "count": {
      "description": "The number of items returned on this page.",
      "type": "integer"
    },
    "data": {
      "description": "List of generated documents.",
      "items": {
        "properties": {
          "createdAt": {
            "description": "Timestamp for the document creation time.",
            "format": "date-time",
            "type": "string"
          },
          "docTypeSpecificInfo": {
            "description": "Information that is specific for a certain document type.",
            "oneOf": [
              {
                "properties": {
                  "endDate": {
                    "description": "End date of selected data in the document.",
                    "format": "date-time",
                    "type": "string"
                  },
                  "modelName": {
                    "description": "Name of the deployed model.",
                    "type": "string"
                  },
                  "startDate": {
                    "description": "Start date of selected data in the document.",
                    "format": "date-time",
                    "type": "string"
                  }
                },
                "required": [
                  "endDate",
                  "startDate"
                ],
                "type": "object"
              },
              {
                "type": "object"
              }
            ]
          },
          "documentType": {
            "description": "Type of the generated document.",
            "enum": [
              "AUTOPILOT_SUMMARY",
              "MODEL_COMPLIANCE",
              "DEPLOYMENT_REPORT",
              "MODEL_COMPLIANCE_GEN_AI"
            ],
            "type": "string",
            "x-enum-versionadded": [
              {
                "value": "DEPLOYMENT_REPORT",
                "x-versionadded": "v2.24"
              },
              {
                "value": "MODEL_COMPLIANCE_GEN_AI",
                "x-versionadded": "v2.35"
              }
            ]
          },
          "entityId": {
            "description": "Unique identifier of the entity the document was generated for.",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the generated document.",
            "type": "string"
          },
          "locale": {
            "description": "Locale of the generated document.",
            "enum": [
              "EN_US",
              "JA_JP"
            ],
            "type": "string"
          },
          "outputFormat": {
            "description": "File format of the generated document.",
            "enum": [
              "docx",
              "html"
            ],
            "type": "string"
          },
          "templateId": {
            "description": "Unique identifier of the template used for the document outline.",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "documentType",
          "entityId",
          "id",
          "outputFormat",
          "templateId"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "next": {
      "description": "The URL of the next page (if null, there is no next page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL of the previous page (if null, there is no previous page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "totalCount": {
      "description": "The total number of items across all pages.",
      "type": "integer"
    }
  },
  "required": [
    "data",
    "next",
    "previous",
    "totalCount"
  ],
  "type": "object"
}
```

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | OK | List of found documents retrieved. | AutomatedDocListResponse |

## Request generation of automated document

Operation path: `POST /api/v2/automatedDocuments/`

Authentication requirements: `BearerAuth`

Request generation of an automated document that's available for your account. Below is an
example request body to generate Model Compliance documentation:

.. sourcecode:: json

```
{
    "documentType": "MODEL_COMPLIANCE",
    "entityId": "507f191e810c19729de860ea",
    "outputFormat": "docx"
}
```

For Autopilot Summary, set a corresponding document type, `AUTOPILOT_SUMMARY`, and assign a
needed project ID to the `entityId` value.

After the request is sent, the jobs needed for document generation are queued. You can see the
status of the generation by polling the URL in the `Location` headers. After the generation is
complete, the status URL will automatically redirect you to the resource location to download
the document.

### Body parameter

```
{
  "properties": {
    "documentType": {
      "description": "Type of the automated document you want to generate.",
      "enum": [
        "AUTOPILOT_SUMMARY",
        "MODEL_COMPLIANCE",
        "DEPLOYMENT_REPORT",
        "MODEL_COMPLIANCE_GEN_AI"
      ],
      "type": "string",
      "x-enum-versionadded": [
        {
          "value": "DEPLOYMENT_REPORT",
          "x-versionadded": "v2.24"
        },
        {
          "value": "MODEL_COMPLIANCE_GEN_AI",
          "x-versionadded": "v2.35"
        }
      ]
    },
    "documentTypeSpecificParameters": {
      "description": "Set parameters unique for a specific document type. Currently, only these document types can have document-specific parameters: ['DEPLOYMENT_REPORT']",
      "oneOf": [
        {
          "properties": {
            "bucketSize": {
              "description": "You can regulate the size of the buckets in charts. One bucket reflects some duration period and you can set the exact duration with this parameter. Bucket size gets defaulted to either a month, a week, or a day, based on the time range of the report. We use `ISO 8601 <https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm>`_ duration format to specify values.",
              "format": "duration",
              "type": "string"
            },
            "end": {
              "description": "End of the period to retrieve monitoring data, defaults to the next top of the hour. Note: this field only accepts top of the hour RFC3339 datetime strings, for example: ``2019-08-01T00:00:00Z``.",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "modelId": {
              "description": "Provide a model ID to generate a report for a previously deployed model.",
              "type": "string"
            },
            "start": {
              "description": "Start of the period to retrieve monitoring data, defaults to 7 days ago from the end of the period. Note: this field only accepts top of the hour RFC3339 datetime strings, for example: ``2019-08-01T00:00:00Z``.",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": "object"
        },
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "x-versionadded": "v.2.24"
    },
    "entityId": {
      "description": "ID of the entity to generate the document for. It can be a model ID, a project ID.",
      "type": "string"
    },
    "locale": {
      "description": "Localization of the document. Defaults to EN_US.",
      "enum": [
        "EN_US",
        "JA_JP"
      ],
      "type": "string"
    },
    "outputFormat": {
      "description": "Format to generate the document in.",
      "enum": [
        "docx",
        "html"
      ],
      "type": "string"
    },
    "templateId": {
      "description": "Template ID to use for the document outline. Defaults to standard Datarobot template.",
      "type": "string"
    }
  },
  "required": [
    "documentType",
    "entityId",
    "outputFormat"
  ],
  "type": "object"
}
```

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| body | body | AutomatedDocCreate | false | none |

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 202 | Accepted | Document generation request accepted. | None |
| 422 | Unprocessable Entity | Unable to process document generation request. | None |

### Response Headers

| Status | Header | Type | Format | Description |
| --- | --- | --- | --- | --- |
| 202 | Location | string |  | URL to poll document generation status: [GET /api/v2/status/{statusId}/][get-apiv2statusstatusid] |

## Delete automated document by document ID

Operation path: `DELETE /api/v2/automatedDocuments/{documentId}/`

Authentication requirements: `BearerAuth`

Delete a document using its ID. Example request:

```
.. code-block:: text

        DELETE https://app.datarobot.com/api/v2/automatedDocuments/5ec4ea7e41054c158c5b002f/ HTTP/1.1
        Authorization: Bearer DnwzBUSTOtKBO5Sp1hoUByG4YgZwCCw4.
```

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| documentId | path | string | true | Unique identifier of the generated document. |

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 204 | No Content | Document successfully deleted. | None |
| 404 | Not Found | Provided document ID not found. | None |

## Download generated document by document ID

Operation path: `GET /api/v2/automatedDocuments/{documentId}/`

Authentication requirements: `BearerAuth`

Download a generated Automated Documentation file.

.. code-block:: text

```
GET https://app.datarobot.com/api/v2/automatedDocuments/5ec4ea7e41054c158c5b002f/ HTTP/1.1
Authorization: Bearer DnwzBUSTOtKBO5Sp1hoUByG4YgZwCCw4
```

In response, you will get a file containing the generated documentation.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| documentId | path | string | true | Unique identifier of the generated document. |

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | OK | Download request succeeded. | None |
| 404 | Not Found | Documentation record not found. | None |

### Response Headers

| Status | Header | Type | Format | Description |
| --- | --- | --- | --- | --- |
| 200 | Content-Disposition | string |  | Autogenerated filename ("attachment;filename=report_name.outputFormat"). |
| 200 | Content-Type | string |  | MIME type corresponding to document file format |

## List compliance documentation templates

Operation path: `GET /api/v2/complianceDocTemplates/`

Authentication requirements: `BearerAuth`

List user's custom-built compliance documentation templates.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| offset | query | integer | false | The number of results to skip. |
| limit | query | integer | false | At most this many results are returned. The default may change without notice. |
| namePart | query | string | false | When present, only return templates with names that contain the given substring. |
| orderBy | query | string | false | Sort order to apply to the dataset list. Prefix the attribute name with a dash to sort in descending order (e.g., orderBy='-id'). |
| labels | query | string,null | false | Name of labels to filter by. |
| projectType | query | string,null | false | Type of project templates to search for. If not specified, returns all project templates types. |

### Enumerated Values

| Parameter | Value |
| --- | --- |
| orderBy | [id, -id] |
| projectType | [autoMl, textGeneration, timeSeries] |

### Example responses

> 200 Response

```
{
  "properties": {
    "count": {
      "description": "The number of items returned on this page.",
      "type": "integer"
    },
    "data": {
      "description": "List of templates.",
      "items": {
        "properties": {
          "creatorId": {
            "description": "The ID of the user who created the template",
            "type": "string"
          },
          "creatorUsername": {
            "description": "The username of the user who created the template",
            "type": "string"
          },
          "dateModified": {
            "description": "Last date/time of template modification.",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "description": "An overview of the template",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The ID of the template accessible by the user",
            "type": "string"
          },
          "instructions": {
            "description": "Currently always returns ``null``. Maintained as a placeholder for future functionality.",
            "type": [
              "string",
              "null"
            ]
          },
          "labels": {
            "description": "User-added filtering labels for the template",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "description": "The name of the template",
            "type": "string"
          },
          "orgId": {
            "description": "The ID of the organization the user who created the template belongs to",
            "type": "string"
          },
          "permissions": {
            "description": "The level of permissions for the user viewing this template.",
            "properties": {
              "CAN_DELETE_TEMPLATE": {
                "description": "Whether the current user can delete this template",
                "type": "boolean"
              },
              "CAN_EDIT_TEMPLATE": {
                "description": "Whether the current user can edit this template",
                "type": "boolean"
              },
              "CAN_SHARE": {
                "description": "Whether the current user can share this template",
                "type": "boolean"
              },
              "CAN_USE_TEMPLATE": {
                "description": "Whether the current user can generate documents with this template",
                "type": "boolean"
              },
              "CAN_VIEW": {
                "description": "Whether the current user can view this template",
                "type": "boolean"
              }
            },
            "required": [
              "CAN_DELETE_TEMPLATE",
              "CAN_EDIT_TEMPLATE",
              "CAN_SHARE",
              "CAN_USE_TEMPLATE",
              "CAN_VIEW"
            ],
            "type": "object"
          },
          "projectType": {
            "description": "Type of project template.",
            "enum": [
              "autoMl",
              "textGeneration",
              "timeSeries"
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "sections": {
            "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. ",
            "items": {
              "oneOf": [
                {
                  "properties": {
                    "contentId": {
                      "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
                      "enum": [
                        "MODEL_DESCRIPTION_AND_OVERVIEW",
                        "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
                        "OVERVIEW_OF_MODEL_RESULTS",
                        "MODEL_DEVELOPMENT_OVERVIEW_SUB",
                        "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                        "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                        "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
                        "MODEL_METHODOLOGY",
                        "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
                        "LITERATURE_REVIEW_AND_REFERENCES",
                        "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
                        "PERSONALLY_IDENTIFIABLE_INFORMATION",
                        "DATA_PARTITIONING_METHODOLOGY",
                        "AD_DATA_PARTITIONING_METHODOLOGY",
                        "TS_DATA_PARTITIONING_METHODOLOGY",
                        "QUANTITATIVE_ANALYSIS",
                        "FINAL_MODEL_VARIABLES",
                        "VALIDATION_STABILITY",
                        "MODEL_PERFORMANCE",
                        "ACCURACY_LIFT_CHART",
                        "MULTICLASS_ACCURACY_LIFT_CHART",
                        "SENSITIVITY_ANALYSIS",
                        "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
                        "AD_SENSITIVITY_ANALYSIS",
                        "ACCURACY_OVER_TIME",
                        "ANOMALY_OVER_TIME",
                        "ACCURACY_ROC",
                        "MULTICLASS_CONFUSION",
                        "MODEL_VERSION_CONTROL",
                        "CUSTOM_INFERENCE_VERSION_CONTROL",
                        "FEATURE_ASSOCIATION_MATRIX",
                        "BIAS_AND_FAIRNESS",
                        "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
                        "HOW_TO_USE",
                        "PREFACE",
                        "TS_MODEL_PERFORMANCE",
                        "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
                        "MODEL_DATA_OVERVIEW",
                        "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
                        "MODEL_PERFORMANCE_AND_STABILITY",
                        "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
                        "SENSITIVITY_TESTING_AND_ANALYSIS",
                        "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
                        "MODEL_STAKEHOLDERS",
                        "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                        "MODEL_INTERDEPENDENCIES",
                        "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
                        "INPUT_DATA_EXTRACTION_PREPARATION",
                        "DATA_ASSUMPTIONS",
                        "CUSTOM_INFERENCE_MODELING_FEATURES",
                        "MODEL_ASSUMPTIONS",
                        "VARIABLE_SELECTION",
                        "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
                        "TS_VARIABLE_SELECTION",
                        "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
                        "KEY_RELATIONSHIPS",
                        "AD_KEY_RELATIONSHIPS",
                        "LLM_SYSTEM_STAKEHOLDERS",
                        "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                        "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
                        "LLM_DATA_OVERVIEW",
                        "LLM_RAG_DATA",
                        "LLM_FINE_TUNING_DATA",
                        "LLM_OVERVIEW",
                        "LLM_MODEL_CARD",
                        "LLM_RISKS_AND_LIMITATIONS",
                        "LLM_INTERDEPENDENCIES",
                        "LLM_LITERATURE_REFERENCES",
                        "LLM_EVALUATION",
                        "LLM_COPYRIGHT_CONCERNS",
                        "LLM_REGISTRY_GOVERNANCE",
                        "LLM_REGISTRY_VERSION_CONTROL"
                      ],
                      "type": "string"
                    },
                    "description": {
                      "description": "Section description",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "instructions": {
                      "description": "Section instructions",
                      "properties": {
                        "owner": {
                          "description": "Instructions owner",
                          "type": "string"
                        },
                        "user": {
                          "description": "Instructions user",
                          "type": "string"
                        }
                      },
                      "required": [
                        "owner",
                        "user"
                      ],
                      "type": "object"
                    },
                    "locked": {
                      "description": "Locked section flag",
                      "type": "boolean"
                    },
                    "sections": {
                      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "title": {
                      "description": "Section Title",
                      "maxLength": 500,
                      "type": "string"
                    },
                    "type": {
                      "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
                      "enum": [
                        "datarobot"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "contentId",
                    "title",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "properties": {
                    "description": {
                      "description": "Section description",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "highlightedText": {
                      "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                      "maxLength": 5000,
                      "type": "string"
                    },
                    "instructions": {
                      "description": "Section instructions",
                      "properties": {
                        "owner": {
                          "description": "Instructions owner",
                          "type": "string"
                        },
                        "user": {
                          "description": "Instructions user",
                          "type": "string"
                        }
                      },
                      "required": [
                        "owner",
                        "user"
                      ],
                      "type": "object"
                    },
                    "locked": {
                      "description": "Locked section flag",
                      "type": "boolean"
                    },
                    "regularText": {
                      "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                      "maxLength": 5000,
                      "type": "string"
                    },
                    "sections": {
                      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "title": {
                      "description": "Section Title",
                      "maxLength": 500,
                      "type": "string"
                    },
                    "type": {
                      "description": "Section with user-defined content. Those sections may contain text generated by the user.",
                      "enum": [
                        "user"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "highlightedText",
                    "regularText",
                    "title",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "properties": {
                    "description": {
                      "description": "Section description",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "highlightedText": {
                      "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                      "maxLength": 5000,
                      "type": "string"
                    },
                    "instructions": {
                      "description": "Section instructions",
                      "properties": {
                        "owner": {
                          "description": "Instructions owner",
                          "type": "string"
                        },
                        "user": {
                          "description": "Instructions user",
                          "type": "string"
                        }
                      },
                      "required": [
                        "owner",
                        "user"
                      ],
                      "type": "object"
                    },
                    "locked": {
                      "description": "Locked section flag",
                      "type": "boolean"
                    },
                    "regularText": {
                      "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                      "maxLength": 5000,
                      "type": "string"
                    },
                    "sections": {
                      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "title": {
                      "description": "Section Title",
                      "maxLength": 500,
                      "type": "string"
                    },
                    "type": {
                      "description": "Section with user-defined content. It can be a section title or summary. ",
                      "enum": [
                        "custom"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "highlightedText",
                    "regularText",
                    "title",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "properties": {
                    "locked": {
                      "description": "Locked section flag",
                      "type": "boolean"
                    },
                    "title": {
                      "description": "Section Title",
                      "maxLength": 500,
                      "type": "string"
                    },
                    "type": {
                      "description": "Table of contents. This section has no additional attributes.",
                      "enum": [
                        "table_of_contents"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type"
                  ],
                  "type": "object"
                }
              ]
            },
            "type": "array"
          }
        },
        "required": [
          "creatorId",
          "creatorUsername",
          "dateModified",
          "description",
          "id",
          "instructions",
          "labels",
          "name",
          "orgId",
          "permissions",
          "projectType",
          "sections"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "next": {
      "description": "The URL of the next page (if null, there is no next page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL of the previous page (if null, there is no previous page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "totalCount": {
      "description": "The total number of items across all pages.",
      "type": "integer"
    }
  },
  "required": [
    "data",
    "next",
    "previous",
    "totalCount"
  ],
  "type": "object"
}
```

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | OK | Successfully returned list of templates | ComplianceDocTemplateListResponse |

## Create a new compliance documentation template

Operation path: `POST /api/v2/complianceDocTemplates/`

Authentication requirements: `BearerAuth`

Create a new compliance documentation template. One can retrieve the default DataRobot template via `GET /api/v2/complianceDocTemplates/default/` endpoint.

### Body parameter

```
{
  "properties": {
    "labels": {
      "description": "Names of the labels to assign to the template.",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-versionadded": "v2.22"
    },
    "name": {
      "description": "Name of the new template. Must be unique among templates created by the user.",
      "type": "string"
    },
    "projectType": {
      "description": "Type of project template.",
      "enum": [
        "autoMl",
        "textGeneration",
        "timeSeries"
      ],
      "type": "string",
      "x-versionadded": "v2.22"
    },
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. ",
      "items": {
        "oneOf": [
          {
            "properties": {
              "contentId": {
                "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
                "enum": [
                  "MODEL_DESCRIPTION_AND_OVERVIEW",
                  "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
                  "OVERVIEW_OF_MODEL_RESULTS",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
                  "MODEL_METHODOLOGY",
                  "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
                  "LITERATURE_REVIEW_AND_REFERENCES",
                  "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
                  "PERSONALLY_IDENTIFIABLE_INFORMATION",
                  "DATA_PARTITIONING_METHODOLOGY",
                  "AD_DATA_PARTITIONING_METHODOLOGY",
                  "TS_DATA_PARTITIONING_METHODOLOGY",
                  "QUANTITATIVE_ANALYSIS",
                  "FINAL_MODEL_VARIABLES",
                  "VALIDATION_STABILITY",
                  "MODEL_PERFORMANCE",
                  "ACCURACY_LIFT_CHART",
                  "MULTICLASS_ACCURACY_LIFT_CHART",
                  "SENSITIVITY_ANALYSIS",
                  "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
                  "AD_SENSITIVITY_ANALYSIS",
                  "ACCURACY_OVER_TIME",
                  "ANOMALY_OVER_TIME",
                  "ACCURACY_ROC",
                  "MULTICLASS_CONFUSION",
                  "MODEL_VERSION_CONTROL",
                  "CUSTOM_INFERENCE_VERSION_CONTROL",
                  "FEATURE_ASSOCIATION_MATRIX",
                  "BIAS_AND_FAIRNESS",
                  "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
                  "HOW_TO_USE",
                  "PREFACE",
                  "TS_MODEL_PERFORMANCE",
                  "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
                  "MODEL_DATA_OVERVIEW",
                  "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
                  "MODEL_PERFORMANCE_AND_STABILITY",
                  "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
                  "SENSITIVITY_TESTING_AND_ANALYSIS",
                  "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
                  "MODEL_STAKEHOLDERS",
                  "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "MODEL_INTERDEPENDENCIES",
                  "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
                  "INPUT_DATA_EXTRACTION_PREPARATION",
                  "DATA_ASSUMPTIONS",
                  "CUSTOM_INFERENCE_MODELING_FEATURES",
                  "MODEL_ASSUMPTIONS",
                  "VARIABLE_SELECTION",
                  "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
                  "TS_VARIABLE_SELECTION",
                  "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
                  "KEY_RELATIONSHIPS",
                  "AD_KEY_RELATIONSHIPS",
                  "LLM_SYSTEM_STAKEHOLDERS",
                  "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
                  "LLM_DATA_OVERVIEW",
                  "LLM_RAG_DATA",
                  "LLM_FINE_TUNING_DATA",
                  "LLM_OVERVIEW",
                  "LLM_MODEL_CARD",
                  "LLM_RISKS_AND_LIMITATIONS",
                  "LLM_INTERDEPENDENCIES",
                  "LLM_LITERATURE_REFERENCES",
                  "LLM_EVALUATION",
                  "LLM_COPYRIGHT_CONCERNS",
                  "LLM_REGISTRY_GOVERNANCE",
                  "LLM_REGISTRY_VERSION_CONTROL"
                ],
                "type": "string"
              },
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
                "enum": [
                  "datarobot"
                ],
                "type": "string"
              }
            },
            "required": [
              "contentId",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. Those sections may contain text generated by the user.",
                "enum": [
                  "user"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. It can be a section title or summary. ",
                "enum": [
                  "custom"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Table of contents. This section has no additional attributes.",
                "enum": [
                  "table_of_contents"
                ],
                "type": "string"
              }
            },
            "required": [
              "title",
              "type"
            ],
            "type": "object"
          }
        ]
      },
      "type": "array"
    }
  },
  "required": [
    "name",
    "sections"
  ],
  "type": "object"
}
```

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| body | body | ComplianceDocTemplateCreate | false | none |

### Example responses

> 201 Response

```
{
  "properties": {
    "dateModified": {
      "description": "Timestamp of the created template",
      "format": "date-time",
      "type": "string"
    },
    "id": {
      "description": "Created template Id",
      "type": "string"
    }
  },
  "required": [
    "dateModified",
    "id"
  ],
  "type": "object"
}
```

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 201 | Created | Model compliance documentation template created successfully | ComplianceDocTemplateCreateResponse |
| 422 | Unprocessable Entity | Template cannot be created, e.g., invalid sections or name already exists | None |

### Response Headers

| Status | Header | Type | Format | Description |
| --- | --- | --- | --- | --- |
| 201 | Location | string | url | URL location of the newly created template. |

## Retrieve the default documentation template

Operation path: `GET /api/v2/complianceDocTemplates/default/`

Authentication requirements: `BearerAuth`

Retrieve the default documentation template.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| type | query | string | true | Specifies the type of the default template to retrieve. The normal template is applicable for all AutoML projects that are not time series. The timeSeries template is only applicable to time series projects.The textGeneration template is only applicable to text generation registry models. |

### Enumerated Values

| Parameter | Value |
| --- | --- |
| type | [normal, textGeneration, timeSeries] |

### Example responses

> 200 Response

```
{
  "properties": {
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. ",
      "items": {
        "oneOf": [
          {
            "properties": {
              "contentId": {
                "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
                "enum": [
                  "MODEL_DESCRIPTION_AND_OVERVIEW",
                  "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
                  "OVERVIEW_OF_MODEL_RESULTS",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
                  "MODEL_METHODOLOGY",
                  "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
                  "LITERATURE_REVIEW_AND_REFERENCES",
                  "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
                  "PERSONALLY_IDENTIFIABLE_INFORMATION",
                  "DATA_PARTITIONING_METHODOLOGY",
                  "AD_DATA_PARTITIONING_METHODOLOGY",
                  "TS_DATA_PARTITIONING_METHODOLOGY",
                  "QUANTITATIVE_ANALYSIS",
                  "FINAL_MODEL_VARIABLES",
                  "VALIDATION_STABILITY",
                  "MODEL_PERFORMANCE",
                  "ACCURACY_LIFT_CHART",
                  "MULTICLASS_ACCURACY_LIFT_CHART",
                  "SENSITIVITY_ANALYSIS",
                  "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
                  "AD_SENSITIVITY_ANALYSIS",
                  "ACCURACY_OVER_TIME",
                  "ANOMALY_OVER_TIME",
                  "ACCURACY_ROC",
                  "MULTICLASS_CONFUSION",
                  "MODEL_VERSION_CONTROL",
                  "CUSTOM_INFERENCE_VERSION_CONTROL",
                  "FEATURE_ASSOCIATION_MATRIX",
                  "BIAS_AND_FAIRNESS",
                  "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
                  "HOW_TO_USE",
                  "PREFACE",
                  "TS_MODEL_PERFORMANCE",
                  "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
                  "MODEL_DATA_OVERVIEW",
                  "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
                  "MODEL_PERFORMANCE_AND_STABILITY",
                  "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
                  "SENSITIVITY_TESTING_AND_ANALYSIS",
                  "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
                  "MODEL_STAKEHOLDERS",
                  "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "MODEL_INTERDEPENDENCIES",
                  "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
                  "INPUT_DATA_EXTRACTION_PREPARATION",
                  "DATA_ASSUMPTIONS",
                  "CUSTOM_INFERENCE_MODELING_FEATURES",
                  "MODEL_ASSUMPTIONS",
                  "VARIABLE_SELECTION",
                  "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
                  "TS_VARIABLE_SELECTION",
                  "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
                  "KEY_RELATIONSHIPS",
                  "AD_KEY_RELATIONSHIPS",
                  "LLM_SYSTEM_STAKEHOLDERS",
                  "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
                  "LLM_DATA_OVERVIEW",
                  "LLM_RAG_DATA",
                  "LLM_FINE_TUNING_DATA",
                  "LLM_OVERVIEW",
                  "LLM_MODEL_CARD",
                  "LLM_RISKS_AND_LIMITATIONS",
                  "LLM_INTERDEPENDENCIES",
                  "LLM_LITERATURE_REFERENCES",
                  "LLM_EVALUATION",
                  "LLM_COPYRIGHT_CONCERNS",
                  "LLM_REGISTRY_GOVERNANCE",
                  "LLM_REGISTRY_VERSION_CONTROL"
                ],
                "type": "string"
              },
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
                "enum": [
                  "datarobot"
                ],
                "type": "string"
              }
            },
            "required": [
              "contentId",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. Those sections may contain text generated by the user.",
                "enum": [
                  "user"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. It can be a section title or summary. ",
                "enum": [
                  "custom"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Table of contents. This section has no additional attributes.",
                "enum": [
                  "table_of_contents"
                ],
                "type": "string"
              }
            },
            "required": [
              "title",
              "type"
            ],
            "type": "object"
          }
        ]
      },
      "type": "array"
    }
  },
  "required": [
    "sections"
  ],
  "type": "object"
}
```

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | OK | Successfully retrieved default template | ComplianceDocTemplateDefaultRetrieveResponse |

## Delete a compliance documentation template by template ID

Operation path: `DELETE /api/v2/complianceDocTemplates/{templateId}/`

Authentication requirements: `BearerAuth`

Delete a compliance documentation template.
Documentation previously generated using this template will remain unchanged.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| templateId | path | string | true | The Id of a model compliance document template accessible by the user |

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 204 | No Content | Template deleted successfully | None |
| 403 | Forbidden | Insufficient permissions to delete template | None |
| 404 | Not Found | Template not found | None |

## Retrieve a documentation template by template ID

Operation path: `GET /api/v2/complianceDocTemplates/{templateId}/`

Authentication requirements: `BearerAuth`

Retrieve a JSON representation of a custom Compliance Documentation template.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| templateId | path | string | true | The Id of a model compliance document template accessible by the user |

### Example responses

> 200 Response

```
{
  "properties": {
    "creatorId": {
      "description": "The ID of the user who created the template",
      "type": "string"
    },
    "creatorUsername": {
      "description": "The username of the user who created the template",
      "type": "string"
    },
    "dateModified": {
      "description": "Last date/time of template modification.",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "description": "An overview of the template",
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "description": "The ID of the template accessible by the user",
      "type": "string"
    },
    "instructions": {
      "description": "Currently always returns ``null``. Maintained as a placeholder for future functionality.",
      "type": [
        "string",
        "null"
      ]
    },
    "labels": {
      "description": "User-added filtering labels for the template",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "name": {
      "description": "The name of the template",
      "type": "string"
    },
    "orgId": {
      "description": "The ID of the organization the user who created the template belongs to",
      "type": "string"
    },
    "permissions": {
      "description": "The level of permissions for the user viewing this template.",
      "properties": {
        "CAN_DELETE_TEMPLATE": {
          "description": "Whether the current user can delete this template",
          "type": "boolean"
        },
        "CAN_EDIT_TEMPLATE": {
          "description": "Whether the current user can edit this template",
          "type": "boolean"
        },
        "CAN_SHARE": {
          "description": "Whether the current user can share this template",
          "type": "boolean"
        },
        "CAN_USE_TEMPLATE": {
          "description": "Whether the current user can generate documents with this template",
          "type": "boolean"
        },
        "CAN_VIEW": {
          "description": "Whether the current user can view this template",
          "type": "boolean"
        }
      },
      "required": [
        "CAN_DELETE_TEMPLATE",
        "CAN_EDIT_TEMPLATE",
        "CAN_SHARE",
        "CAN_USE_TEMPLATE",
        "CAN_VIEW"
      ],
      "type": "object"
    },
    "projectType": {
      "description": "Type of project template.",
      "enum": [
        "autoMl",
        "textGeneration",
        "timeSeries"
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. ",
      "items": {
        "oneOf": [
          {
            "properties": {
              "contentId": {
                "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
                "enum": [
                  "MODEL_DESCRIPTION_AND_OVERVIEW",
                  "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
                  "OVERVIEW_OF_MODEL_RESULTS",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
                  "MODEL_METHODOLOGY",
                  "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
                  "LITERATURE_REVIEW_AND_REFERENCES",
                  "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
                  "PERSONALLY_IDENTIFIABLE_INFORMATION",
                  "DATA_PARTITIONING_METHODOLOGY",
                  "AD_DATA_PARTITIONING_METHODOLOGY",
                  "TS_DATA_PARTITIONING_METHODOLOGY",
                  "QUANTITATIVE_ANALYSIS",
                  "FINAL_MODEL_VARIABLES",
                  "VALIDATION_STABILITY",
                  "MODEL_PERFORMANCE",
                  "ACCURACY_LIFT_CHART",
                  "MULTICLASS_ACCURACY_LIFT_CHART",
                  "SENSITIVITY_ANALYSIS",
                  "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
                  "AD_SENSITIVITY_ANALYSIS",
                  "ACCURACY_OVER_TIME",
                  "ANOMALY_OVER_TIME",
                  "ACCURACY_ROC",
                  "MULTICLASS_CONFUSION",
                  "MODEL_VERSION_CONTROL",
                  "CUSTOM_INFERENCE_VERSION_CONTROL",
                  "FEATURE_ASSOCIATION_MATRIX",
                  "BIAS_AND_FAIRNESS",
                  "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
                  "HOW_TO_USE",
                  "PREFACE",
                  "TS_MODEL_PERFORMANCE",
                  "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
                  "MODEL_DATA_OVERVIEW",
                  "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
                  "MODEL_PERFORMANCE_AND_STABILITY",
                  "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
                  "SENSITIVITY_TESTING_AND_ANALYSIS",
                  "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
                  "MODEL_STAKEHOLDERS",
                  "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "MODEL_INTERDEPENDENCIES",
                  "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
                  "INPUT_DATA_EXTRACTION_PREPARATION",
                  "DATA_ASSUMPTIONS",
                  "CUSTOM_INFERENCE_MODELING_FEATURES",
                  "MODEL_ASSUMPTIONS",
                  "VARIABLE_SELECTION",
                  "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
                  "TS_VARIABLE_SELECTION",
                  "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
                  "KEY_RELATIONSHIPS",
                  "AD_KEY_RELATIONSHIPS",
                  "LLM_SYSTEM_STAKEHOLDERS",
                  "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
                  "LLM_DATA_OVERVIEW",
                  "LLM_RAG_DATA",
                  "LLM_FINE_TUNING_DATA",
                  "LLM_OVERVIEW",
                  "LLM_MODEL_CARD",
                  "LLM_RISKS_AND_LIMITATIONS",
                  "LLM_INTERDEPENDENCIES",
                  "LLM_LITERATURE_REFERENCES",
                  "LLM_EVALUATION",
                  "LLM_COPYRIGHT_CONCERNS",
                  "LLM_REGISTRY_GOVERNANCE",
                  "LLM_REGISTRY_VERSION_CONTROL"
                ],
                "type": "string"
              },
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
                "enum": [
                  "datarobot"
                ],
                "type": "string"
              }
            },
            "required": [
              "contentId",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. Those sections may contain text generated by the user.",
                "enum": [
                  "user"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. It can be a section title or summary. ",
                "enum": [
                  "custom"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Table of contents. This section has no additional attributes.",
                "enum": [
                  "table_of_contents"
                ],
                "type": "string"
              }
            },
            "required": [
              "title",
              "type"
            ],
            "type": "object"
          }
        ]
      },
      "type": "array"
    }
  },
  "required": [
    "creatorId",
    "creatorUsername",
    "dateModified",
    "description",
    "id",
    "instructions",
    "labels",
    "name",
    "orgId",
    "permissions",
    "projectType",
    "sections"
  ],
  "type": "object"
}
```

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | OK | Successfully retrieved template | TemplateResponse |
| 404 | Not Found | No matching template owned by this user was found | None |

## Update an existing model compliance documentation template by template ID

Operation path: `PATCH /api/v2/complianceDocTemplates/{templateId}/`

Authentication requirements: `BearerAuth`

Update an existing model compliance documentation template with the given `templateId`. The template must be accessible by the user. If the `templateId` is not found for the user, the update cannot be performed.
For a description of the template `sections` object options, see the sample `sections` on the schema below.

### Body parameter

```
{
  "properties": {
    "description": {
      "description": "New description for the template.",
      "type": "string"
    },
    "labels": {
      "description": "Names of the labels to assign to the template.",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-versionadded": "v2.22"
    },
    "name": {
      "description": "New name for the template. Must be unique among templates created by the user.",
      "type": "string"
    },
    "projectType": {
      "description": "Type of project template.",
      "enum": [
        "autoMl",
        "textGeneration",
        "timeSeries"
      ],
      "type": "string",
      "x-versionadded": "v2.22"
    },
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. ",
      "items": {
        "oneOf": [
          {
            "properties": {
              "contentId": {
                "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
                "enum": [
                  "MODEL_DESCRIPTION_AND_OVERVIEW",
                  "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
                  "OVERVIEW_OF_MODEL_RESULTS",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
                  "MODEL_METHODOLOGY",
                  "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
                  "LITERATURE_REVIEW_AND_REFERENCES",
                  "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
                  "PERSONALLY_IDENTIFIABLE_INFORMATION",
                  "DATA_PARTITIONING_METHODOLOGY",
                  "AD_DATA_PARTITIONING_METHODOLOGY",
                  "TS_DATA_PARTITIONING_METHODOLOGY",
                  "QUANTITATIVE_ANALYSIS",
                  "FINAL_MODEL_VARIABLES",
                  "VALIDATION_STABILITY",
                  "MODEL_PERFORMANCE",
                  "ACCURACY_LIFT_CHART",
                  "MULTICLASS_ACCURACY_LIFT_CHART",
                  "SENSITIVITY_ANALYSIS",
                  "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
                  "AD_SENSITIVITY_ANALYSIS",
                  "ACCURACY_OVER_TIME",
                  "ANOMALY_OVER_TIME",
                  "ACCURACY_ROC",
                  "MULTICLASS_CONFUSION",
                  "MODEL_VERSION_CONTROL",
                  "CUSTOM_INFERENCE_VERSION_CONTROL",
                  "FEATURE_ASSOCIATION_MATRIX",
                  "BIAS_AND_FAIRNESS",
                  "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
                  "HOW_TO_USE",
                  "PREFACE",
                  "TS_MODEL_PERFORMANCE",
                  "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
                  "MODEL_DATA_OVERVIEW",
                  "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
                  "MODEL_PERFORMANCE_AND_STABILITY",
                  "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
                  "SENSITIVITY_TESTING_AND_ANALYSIS",
                  "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
                  "MODEL_STAKEHOLDERS",
                  "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "MODEL_INTERDEPENDENCIES",
                  "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
                  "INPUT_DATA_EXTRACTION_PREPARATION",
                  "DATA_ASSUMPTIONS",
                  "CUSTOM_INFERENCE_MODELING_FEATURES",
                  "MODEL_ASSUMPTIONS",
                  "VARIABLE_SELECTION",
                  "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
                  "TS_VARIABLE_SELECTION",
                  "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
                  "KEY_RELATIONSHIPS",
                  "AD_KEY_RELATIONSHIPS",
                  "LLM_SYSTEM_STAKEHOLDERS",
                  "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
                  "LLM_DATA_OVERVIEW",
                  "LLM_RAG_DATA",
                  "LLM_FINE_TUNING_DATA",
                  "LLM_OVERVIEW",
                  "LLM_MODEL_CARD",
                  "LLM_RISKS_AND_LIMITATIONS",
                  "LLM_INTERDEPENDENCIES",
                  "LLM_LITERATURE_REFERENCES",
                  "LLM_EVALUATION",
                  "LLM_COPYRIGHT_CONCERNS",
                  "LLM_REGISTRY_GOVERNANCE",
                  "LLM_REGISTRY_VERSION_CONTROL"
                ],
                "type": "string"
              },
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
                "enum": [
                  "datarobot"
                ],
                "type": "string"
              }
            },
            "required": [
              "contentId",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. Those sections may contain text generated by the user.",
                "enum": [
                  "user"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. It can be a section title or summary. ",
                "enum": [
                  "custom"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Table of contents. This section has no additional attributes.",
                "enum": [
                  "table_of_contents"
                ],
                "type": "string"
              }
            },
            "required": [
              "title",
              "type"
            ],
            "type": "object"
          }
        ]
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| templateId | path | string | true | The Id of a model compliance document template accessible by the user |
| body | body | ComplianceDocTemplateUpdate | false | none |

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 204 | No Content | Model compliance documentation template updated successfully | None |
| 403 | Forbidden | Not enough permissions to edit template | None |
| 404 | Not Found | Template not found | None |

## Get the template's access control list by template ID

Operation path: `GET /api/v2/complianceDocTemplates/{templateId}/sharedRoles/`

Authentication requirements: `BearerAuth`

Get a list of users, groups and organizations who have access to this template and their roles on the template.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| id | query | string | false | Only return roles for a user, group or organization with this identifier. |
| offset | query | integer | true | This many results will be skipped |
| limit | query | integer | true | At most this many results are returned |
| name | query | string | false | Only return roles for a user, group or organization with this name. |
| shareRecipientType | query | string | false | The list of access controls for recipients with this type. |
| templateId | path | string | true | The template identifier |

### Enumerated Values

| Parameter | Value |
| --- | --- |
| shareRecipientType | [user, group, organization] |

### Example responses

> 200 Response

```
{
  "properties": {
    "count": {
      "description": "The number of items returned.",
      "type": "integer"
    },
    "data": {
      "description": "The access control list.",
      "items": {
        "properties": {
          "id": {
            "description": "The identifier of the recipient.",
            "type": "string"
          },
          "name": {
            "description": "The name of the recipient.",
            "type": "string"
          },
          "role": {
            "description": "The role of the recipient on this entity.",
            "enum": [
              "ADMIN",
              "CONSUMER",
              "DATA_SCIENTIST",
              "EDITOR",
              "OBSERVER",
              "OWNER",
              "READ_ONLY",
              "READ_WRITE",
              "USER"
            ],
            "type": "string"
          },
          "shareRecipientType": {
            "description": "The type of the recipient.",
            "enum": [
              "user",
              "group",
              "organization"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "role",
          "shareRecipientType"
        ],
        "type": "object"
      },
      "maxItems": 1000,
      "type": "array"
    },
    "next": {
      "description": "The URL pointing to the next page.",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL pointing to the previous page.",
      "type": [
        "string",
        "null"
      ]
    },
    "totalCount": {
      "description": "The total number of items matching the condition.",
      "type": "integer"
    }
  },
  "required": [
    "count",
    "data",
    "next",
    "previous",
    "totalCount"
  ],
  "type": "object"
}
```

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | OK | The template's access control list. | SharingListV2Response |
| 404 | Not Found | Either the template does not exist or the user does not have permissions to view the template. | None |
| 422 | Unprocessable Entity | Both username and userId were specified | None |

## Update the template's access controls by template ID

Operation path: `PATCH /api/v2/complianceDocTemplates/{templateId}/sharedRoles/`

Authentication requirements: `BearerAuth`

Set roles for users on this template.

### Body parameter

```
{
  "properties": {
    "operation": {
      "description": "Name of the action being taken. The only operation is 'updateRoles'.",
      "enum": [
        "updateRoles"
      ],
      "type": "string"
    },
    "roles": {
      "description": "Array of GrantAccessControl objects., up to maximum 100 objects.",
      "items": {
        "oneOf": [
          {
            "properties": {
              "role": {
                "description": "The role of the recipient on this entity.",
                "enum": [
                  "ADMIN",
                  "CONSUMER",
                  "DATA_SCIENTIST",
                  "EDITOR",
                  "NO_ROLE",
                  "OBSERVER",
                  "OWNER",
                  "READ_ONLY",
                  "READ_WRITE",
                  "USER"
                ],
                "type": "string"
              },
              "shareRecipientType": {
                "description": "Describes the recipient type, either user, group, or organization.",
                "enum": [
                  "user",
                  "group",
                  "organization"
                ],
                "type": "string"
              },
              "username": {
                "description": "Username of the user to update the access role for.",
                "type": "string"
              }
            },
            "required": [
              "role",
              "shareRecipientType",
              "username"
            ],
            "type": "object"
          },
          {
            "properties": {
              "id": {
                "description": "The ID of the recipient.",
                "type": "string"
              },
              "role": {
                "description": "The role of the recipient on this entity.",
                "enum": [
                  "ADMIN",
                  "CONSUMER",
                  "DATA_SCIENTIST",
                  "EDITOR",
                  "NO_ROLE",
                  "OBSERVER",
                  "OWNER",
                  "READ_ONLY",
                  "READ_WRITE",
                  "USER"
                ],
                "type": "string"
              },
              "shareRecipientType": {
                "description": "Describes the recipient type, either user, group, or organization.",
                "enum": [
                  "user",
                  "group",
                  "organization"
                ],
                "type": "string"
              }
            },
            "required": [
              "id",
              "role",
              "shareRecipientType"
            ],
            "type": "object"
          }
        ]
      },
      "maxItems": 100,
      "minItems": 1,
      "type": "array"
    }
  },
  "required": [
    "operation",
    "roles"
  ],
  "type": "object"
}
```

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| templateId | path | string | true | The template identifier |
| body | body | SharedRolesUpdate | false | none |

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 204 | No Content | Roles updated successfully. | None |
| 409 | Conflict | The request would leave the template without an owner. | None |
| 422 | Unprocessable Entity | One of the users in the request does not exist, or the request is otherwise invalid | None |

## Check if compliance documentation pre-processing is initialized by entity ID

Operation path: `GET /api/v2/modelComplianceDocsInitializations/{entityId}/`

Authentication requirements: `BearerAuth`

Check if compliance documentation pre-processing is initialized for the current model. This is only required for custom models.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| entityId | path | string | true | The ID of the model or model package the document corresponds to. |

### Example responses

> 200 Response

```
{
  "properties": {
    "initialized": {
      "description": "Whether compliance documentation pre-preprocessing is initialized for the model",
      "type": "boolean"
    },
    "status": {
      "description": "Compliance documentation pre-processing initialization status",
      "enum": [
        "initialized",
        "initializationInProgress",
        "notRequested",
        "noTrainingData",
        "trainingDataAssignmentInProgress",
        "initializationError"
      ],
      "type": "string"
    }
  },
  "required": [
    "initialized",
    "status"
  ],
  "type": "object"
}
```

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | OK | Retrieve information about the status of the compliance documentation pre-preprocessing initialization. | ModelComplianceDocsInitializationsResponse |
| 404 | Not Found | Model not found. | None |

## Initialize compliance documentation pre-processing by entity ID

Operation path: `POST /api/v2/modelComplianceDocsInitializations/{entityId}/`

Authentication requirements: `BearerAuth`

Initialize compliance documentation pre-processing for the current model. This route must be called before generating documentation for a custom model.

### Body parameter

```
{
  "type": "object"
}
```

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| entityId | path | string | true | The ID of the model or model package the document corresponds to. |
| body | body | Empty | false | none |

### Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 202 | Accepted | Job to initialize compliance documentation pre-processing successfully started. | None |
| 404 | Not Found | Model not found. | None |
| 422 | Unprocessable Entity | Cannot prepare model for compliance document generation. | None |

### Response Headers

| Status | Header | Type | Format | Description |
| --- | --- | --- | --- | --- |
| 202 | Location | string |  | URL to poll for getting a status of the job: [GET /api/v2/status/{statusId}/][get-apiv2statusstatusid] |

# Schemas

## AccessControlV2

```
{
  "properties": {
    "id": {
      "description": "The identifier of the recipient.",
      "type": "string"
    },
    "name": {
      "description": "The name of the recipient.",
      "type": "string"
    },
    "role": {
      "description": "The role of the recipient on this entity.",
      "enum": [
        "ADMIN",
        "CONSUMER",
        "DATA_SCIENTIST",
        "EDITOR",
        "OBSERVER",
        "OWNER",
        "READ_ONLY",
        "READ_WRITE",
        "USER"
      ],
      "type": "string"
    },
    "shareRecipientType": {
      "description": "The type of the recipient.",
      "enum": [
        "user",
        "group",
        "organization"
      ],
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "role",
    "shareRecipientType"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| id | string | true |  | The identifier of the recipient. |
| name | string | true |  | The name of the recipient. |
| role | string | true |  | The role of the recipient on this entity. |
| shareRecipientType | string | true |  | The type of the recipient. |

### Enumerated Values

| Property | Value |
| --- | --- |
| role | [ADMIN, CONSUMER, DATA_SCIENTIST, EDITOR, OBSERVER, OWNER, READ_ONLY, READ_WRITE, USER] |
| shareRecipientType | [user, group, organization] |

## AutomatedDocCreate

```
{
  "properties": {
    "documentType": {
      "description": "Type of the automated document you want to generate.",
      "enum": [
        "AUTOPILOT_SUMMARY",
        "MODEL_COMPLIANCE",
        "DEPLOYMENT_REPORT",
        "MODEL_COMPLIANCE_GEN_AI"
      ],
      "type": "string",
      "x-enum-versionadded": [
        {
          "value": "DEPLOYMENT_REPORT",
          "x-versionadded": "v2.24"
        },
        {
          "value": "MODEL_COMPLIANCE_GEN_AI",
          "x-versionadded": "v2.35"
        }
      ]
    },
    "documentTypeSpecificParameters": {
      "description": "Set parameters unique for a specific document type. Currently, only these document types can have document-specific parameters: ['DEPLOYMENT_REPORT']",
      "oneOf": [
        {
          "properties": {
            "bucketSize": {
              "description": "You can regulate the size of the buckets in charts. One bucket reflects some duration period and you can set the exact duration with this parameter. Bucket size gets defaulted to either a month, a week, or a day, based on the time range of the report. We use `ISO 8601 <https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm>`_ duration format to specify values.",
              "format": "duration",
              "type": "string"
            },
            "end": {
              "description": "End of the period to retrieve monitoring data, defaults to the next top of the hour. Note: this field only accepts top of the hour RFC3339 datetime strings, for example: ``2019-08-01T00:00:00Z``.",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            },
            "modelId": {
              "description": "Provide a model ID to generate a report for a previously deployed model.",
              "type": "string"
            },
            "start": {
              "description": "Start of the period to retrieve monitoring data, defaults to 7 days ago from the end of the period. Note: this field only accepts top of the hour RFC3339 datetime strings, for example: ``2019-08-01T00:00:00Z``.",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": "object"
        },
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "x-versionadded": "v.2.24"
    },
    "entityId": {
      "description": "ID of the entity to generate the document for. It can be a model ID, a project ID.",
      "type": "string"
    },
    "locale": {
      "description": "Localization of the document. Defaults to EN_US.",
      "enum": [
        "EN_US",
        "JA_JP"
      ],
      "type": "string"
    },
    "outputFormat": {
      "description": "Format to generate the document in.",
      "enum": [
        "docx",
        "html"
      ],
      "type": "string"
    },
    "templateId": {
      "description": "Template ID to use for the document outline. Defaults to standard Datarobot template.",
      "type": "string"
    }
  },
  "required": [
    "documentType",
    "entityId",
    "outputFormat"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| documentType | string | true |  | Type of the automated document you want to generate. |
| documentTypeSpecificParameters | any | false |  | Set parameters unique for a specific document type. Currently, only these document types can have document-specific parameters: ['DEPLOYMENT_REPORT'] |

oneOf

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | AutomatedDocCreateDeploymentReport | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | AutomatedDocCreateModelComplianceDocs | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | null | false |  | none |

continued

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| entityId | string | true |  | ID of the entity to generate the document for. It can be a model ID, a project ID. |
| locale | string | false |  | Localization of the document. Defaults to EN_US. |
| outputFormat | string | true |  | Format to generate the document in. |
| templateId | string | false |  | Template ID to use for the document outline. Defaults to standard Datarobot template. |

### Enumerated Values

| Property | Value |
| --- | --- |
| documentType | [AUTOPILOT_SUMMARY, MODEL_COMPLIANCE, DEPLOYMENT_REPORT, MODEL_COMPLIANCE_GEN_AI] |
| locale | [EN_US, JA_JP] |
| outputFormat | [docx, html] |

## AutomatedDocCreateDeploymentReport

```
{
  "properties": {
    "bucketSize": {
      "description": "You can regulate the size of the buckets in charts. One bucket reflects some duration period and you can set the exact duration with this parameter. Bucket size gets defaulted to either a month, a week, or a day, based on the time range of the report. We use `ISO 8601 <https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm>`_ duration format to specify values.",
      "format": "duration",
      "type": "string"
    },
    "end": {
      "description": "End of the period to retrieve monitoring data, defaults to the next top of the hour. Note: this field only accepts top of the hour RFC3339 datetime strings, for example: ``2019-08-01T00:00:00Z``.",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "modelId": {
      "description": "Provide a model ID to generate a report for a previously deployed model.",
      "type": "string"
    },
    "start": {
      "description": "Start of the period to retrieve monitoring data, defaults to 7 days ago from the end of the period. Note: this field only accepts top of the hour RFC3339 datetime strings, for example: ``2019-08-01T00:00:00Z``.",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| bucketSize | string(duration) | false |  | You can regulate the size of the buckets in charts. One bucket reflects some duration period and you can set the exact duration with this parameter. Bucket size gets defaulted to either a month, a week, or a day, based on the time range of the report. We use ISO 8601 <https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm>_ duration format to specify values. |
| end | string,null(date-time) | false |  | End of the period to retrieve monitoring data, defaults to the next top of the hour. Note: this field only accepts top of the hour RFC3339 datetime strings, for example: 2019-08-01T00:00:00Z. |
| modelId | string | false |  | Provide a model ID to generate a report for a previously deployed model. |
| start | string,null(date-time) | false |  | Start of the period to retrieve monitoring data, defaults to 7 days ago from the end of the period. Note: this field only accepts top of the hour RFC3339 datetime strings, for example: 2019-08-01T00:00:00Z. |

## AutomatedDocCreateModelComplianceDocs

```
{
  "type": "object"
}
```

### Properties

None

## AutomatedDocItem

```
{
  "properties": {
    "createdAt": {
      "description": "Timestamp for the document creation time.",
      "format": "date-time",
      "type": "string"
    },
    "docTypeSpecificInfo": {
      "description": "Information that is specific for a certain document type.",
      "oneOf": [
        {
          "properties": {
            "endDate": {
              "description": "End date of selected data in the document.",
              "format": "date-time",
              "type": "string"
            },
            "modelName": {
              "description": "Name of the deployed model.",
              "type": "string"
            },
            "startDate": {
              "description": "Start date of selected data in the document.",
              "format": "date-time",
              "type": "string"
            }
          },
          "required": [
            "endDate",
            "startDate"
          ],
          "type": "object"
        },
        {
          "type": "object"
        }
      ]
    },
    "documentType": {
      "description": "Type of the generated document.",
      "enum": [
        "AUTOPILOT_SUMMARY",
        "MODEL_COMPLIANCE",
        "DEPLOYMENT_REPORT",
        "MODEL_COMPLIANCE_GEN_AI"
      ],
      "type": "string",
      "x-enum-versionadded": [
        {
          "value": "DEPLOYMENT_REPORT",
          "x-versionadded": "v2.24"
        },
        {
          "value": "MODEL_COMPLIANCE_GEN_AI",
          "x-versionadded": "v2.35"
        }
      ]
    },
    "entityId": {
      "description": "Unique identifier of the entity the document was generated for.",
      "type": "string"
    },
    "id": {
      "description": "Unique identifier of the generated document.",
      "type": "string"
    },
    "locale": {
      "description": "Locale of the generated document.",
      "enum": [
        "EN_US",
        "JA_JP"
      ],
      "type": "string"
    },
    "outputFormat": {
      "description": "File format of the generated document.",
      "enum": [
        "docx",
        "html"
      ],
      "type": "string"
    },
    "templateId": {
      "description": "Unique identifier of the template used for the document outline.",
      "type": "string"
    }
  },
  "required": [
    "createdAt",
    "documentType",
    "entityId",
    "id",
    "outputFormat",
    "templateId"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| createdAt | string(date-time) | true |  | Timestamp for the document creation time. |
| docTypeSpecificInfo | any | false |  | Information that is specific for a certain document type. |

oneOf

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | DocTypeSpecificInfoDeploymentReport | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | DocTypeSpecificInfoModelCompliance | false |  | none |

continued

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| documentType | string | true |  | Type of the generated document. |
| entityId | string | true |  | Unique identifier of the entity the document was generated for. |
| id | string | true |  | Unique identifier of the generated document. |
| locale | string | false |  | Locale of the generated document. |
| outputFormat | string | true |  | File format of the generated document. |
| templateId | string | true |  | Unique identifier of the template used for the document outline. |

### Enumerated Values

| Property | Value |
| --- | --- |
| documentType | [AUTOPILOT_SUMMARY, MODEL_COMPLIANCE, DEPLOYMENT_REPORT, MODEL_COMPLIANCE_GEN_AI] |
| locale | [EN_US, JA_JP] |
| outputFormat | [docx, html] |

## AutomatedDocListResponse

```
{
  "properties": {
    "count": {
      "description": "The number of items returned on this page.",
      "type": "integer"
    },
    "data": {
      "description": "List of generated documents.",
      "items": {
        "properties": {
          "createdAt": {
            "description": "Timestamp for the document creation time.",
            "format": "date-time",
            "type": "string"
          },
          "docTypeSpecificInfo": {
            "description": "Information that is specific for a certain document type.",
            "oneOf": [
              {
                "properties": {
                  "endDate": {
                    "description": "End date of selected data in the document.",
                    "format": "date-time",
                    "type": "string"
                  },
                  "modelName": {
                    "description": "Name of the deployed model.",
                    "type": "string"
                  },
                  "startDate": {
                    "description": "Start date of selected data in the document.",
                    "format": "date-time",
                    "type": "string"
                  }
                },
                "required": [
                  "endDate",
                  "startDate"
                ],
                "type": "object"
              },
              {
                "type": "object"
              }
            ]
          },
          "documentType": {
            "description": "Type of the generated document.",
            "enum": [
              "AUTOPILOT_SUMMARY",
              "MODEL_COMPLIANCE",
              "DEPLOYMENT_REPORT",
              "MODEL_COMPLIANCE_GEN_AI"
            ],
            "type": "string",
            "x-enum-versionadded": [
              {
                "value": "DEPLOYMENT_REPORT",
                "x-versionadded": "v2.24"
              },
              {
                "value": "MODEL_COMPLIANCE_GEN_AI",
                "x-versionadded": "v2.35"
              }
            ]
          },
          "entityId": {
            "description": "Unique identifier of the entity the document was generated for.",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the generated document.",
            "type": "string"
          },
          "locale": {
            "description": "Locale of the generated document.",
            "enum": [
              "EN_US",
              "JA_JP"
            ],
            "type": "string"
          },
          "outputFormat": {
            "description": "File format of the generated document.",
            "enum": [
              "docx",
              "html"
            ],
            "type": "string"
          },
          "templateId": {
            "description": "Unique identifier of the template used for the document outline.",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "documentType",
          "entityId",
          "id",
          "outputFormat",
          "templateId"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "next": {
      "description": "The URL of the next page (if null, there is no next page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL of the previous page (if null, there is no previous page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "totalCount": {
      "description": "The total number of items across all pages.",
      "type": "integer"
    }
  },
  "required": [
    "data",
    "next",
    "previous",
    "totalCount"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| count | integer | false |  | The number of items returned on this page. |
| data | [AutomatedDocItem] | true |  | List of generated documents. |
| next | string,null(uri) | true |  | The URL of the next page (if null, there is no next page). |
| previous | string,null(uri) | true |  | The URL of the previous page (if null, there is no previous page). |
| totalCount | integer | true |  | The total number of items across all pages. |

## AutomatedDocOptions

```
{
  "properties": {
    "documentType": {
      "description": "Type of document available for generation.",
      "enum": [
        "AUTOPILOT_SUMMARY",
        "MODEL_COMPLIANCE",
        "DEPLOYMENT_REPORT",
        "MODEL_COMPLIANCE_GEN_AI"
      ],
      "type": "string",
      "x-enum-versionadded": [
        {
          "value": "DEPLOYMENT_REPORT",
          "x-versionadded": "v2.24"
        },
        {
          "value": "MODEL_COMPLIANCE_GEN_AI",
          "x-versionadded": "v2.35"
        }
      ]
    },
    "locale": {
      "description": "Locale available for the document generation.",
      "enum": [
        "EN_US",
        "JA_JP"
      ],
      "type": "string"
    }
  },
  "required": [
    "documentType",
    "locale"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| documentType | string | true |  | Type of document available for generation. |
| locale | string | true |  | Locale available for the document generation. |

### Enumerated Values

| Property | Value |
| --- | --- |
| documentType | [AUTOPILOT_SUMMARY, MODEL_COMPLIANCE, DEPLOYMENT_REPORT, MODEL_COMPLIANCE_GEN_AI] |
| locale | [EN_US, JA_JP] |

## AutomatedDocOptionsResponse

```
{
  "properties": {
    "data": {
      "description": "List of document types available for generation.",
      "items": {
        "properties": {
          "documentType": {
            "description": "Type of document available for generation.",
            "enum": [
              "AUTOPILOT_SUMMARY",
              "MODEL_COMPLIANCE",
              "DEPLOYMENT_REPORT",
              "MODEL_COMPLIANCE_GEN_AI"
            ],
            "type": "string",
            "x-enum-versionadded": [
              {
                "value": "DEPLOYMENT_REPORT",
                "x-versionadded": "v2.24"
              },
              {
                "value": "MODEL_COMPLIANCE_GEN_AI",
                "x-versionadded": "v2.35"
              }
            ]
          },
          "locale": {
            "description": "Locale available for the document generation.",
            "enum": [
              "EN_US",
              "JA_JP"
            ],
            "type": "string"
          }
        },
        "required": [
          "documentType",
          "locale"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "data"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| data | [AutomatedDocOptions] | true |  | List of document types available for generation. |

## ComplianceDocTemplateCreate

```
{
  "properties": {
    "labels": {
      "description": "Names of the labels to assign to the template.",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-versionadded": "v2.22"
    },
    "name": {
      "description": "Name of the new template. Must be unique among templates created by the user.",
      "type": "string"
    },
    "projectType": {
      "description": "Type of project template.",
      "enum": [
        "autoMl",
        "textGeneration",
        "timeSeries"
      ],
      "type": "string",
      "x-versionadded": "v2.22"
    },
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. ",
      "items": {
        "oneOf": [
          {
            "properties": {
              "contentId": {
                "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
                "enum": [
                  "MODEL_DESCRIPTION_AND_OVERVIEW",
                  "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
                  "OVERVIEW_OF_MODEL_RESULTS",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
                  "MODEL_METHODOLOGY",
                  "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
                  "LITERATURE_REVIEW_AND_REFERENCES",
                  "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
                  "PERSONALLY_IDENTIFIABLE_INFORMATION",
                  "DATA_PARTITIONING_METHODOLOGY",
                  "AD_DATA_PARTITIONING_METHODOLOGY",
                  "TS_DATA_PARTITIONING_METHODOLOGY",
                  "QUANTITATIVE_ANALYSIS",
                  "FINAL_MODEL_VARIABLES",
                  "VALIDATION_STABILITY",
                  "MODEL_PERFORMANCE",
                  "ACCURACY_LIFT_CHART",
                  "MULTICLASS_ACCURACY_LIFT_CHART",
                  "SENSITIVITY_ANALYSIS",
                  "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
                  "AD_SENSITIVITY_ANALYSIS",
                  "ACCURACY_OVER_TIME",
                  "ANOMALY_OVER_TIME",
                  "ACCURACY_ROC",
                  "MULTICLASS_CONFUSION",
                  "MODEL_VERSION_CONTROL",
                  "CUSTOM_INFERENCE_VERSION_CONTROL",
                  "FEATURE_ASSOCIATION_MATRIX",
                  "BIAS_AND_FAIRNESS",
                  "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
                  "HOW_TO_USE",
                  "PREFACE",
                  "TS_MODEL_PERFORMANCE",
                  "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
                  "MODEL_DATA_OVERVIEW",
                  "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
                  "MODEL_PERFORMANCE_AND_STABILITY",
                  "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
                  "SENSITIVITY_TESTING_AND_ANALYSIS",
                  "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
                  "MODEL_STAKEHOLDERS",
                  "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "MODEL_INTERDEPENDENCIES",
                  "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
                  "INPUT_DATA_EXTRACTION_PREPARATION",
                  "DATA_ASSUMPTIONS",
                  "CUSTOM_INFERENCE_MODELING_FEATURES",
                  "MODEL_ASSUMPTIONS",
                  "VARIABLE_SELECTION",
                  "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
                  "TS_VARIABLE_SELECTION",
                  "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
                  "KEY_RELATIONSHIPS",
                  "AD_KEY_RELATIONSHIPS",
                  "LLM_SYSTEM_STAKEHOLDERS",
                  "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
                  "LLM_DATA_OVERVIEW",
                  "LLM_RAG_DATA",
                  "LLM_FINE_TUNING_DATA",
                  "LLM_OVERVIEW",
                  "LLM_MODEL_CARD",
                  "LLM_RISKS_AND_LIMITATIONS",
                  "LLM_INTERDEPENDENCIES",
                  "LLM_LITERATURE_REFERENCES",
                  "LLM_EVALUATION",
                  "LLM_COPYRIGHT_CONCERNS",
                  "LLM_REGISTRY_GOVERNANCE",
                  "LLM_REGISTRY_VERSION_CONTROL"
                ],
                "type": "string"
              },
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
                "enum": [
                  "datarobot"
                ],
                "type": "string"
              }
            },
            "required": [
              "contentId",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. Those sections may contain text generated by the user.",
                "enum": [
                  "user"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. It can be a section title or summary. ",
                "enum": [
                  "custom"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Table of contents. This section has no additional attributes.",
                "enum": [
                  "table_of_contents"
                ],
                "type": "string"
              }
            },
            "required": [
              "title",
              "type"
            ],
            "type": "object"
          }
        ]
      },
      "type": "array"
    }
  },
  "required": [
    "name",
    "sections"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| labels | [string] | false |  | Names of the labels to assign to the template. |
| name | string | true |  | Name of the new template. Must be unique among templates created by the user. |
| projectType | string | false |  | Type of project template. |
| sections | [oneOf] | true |  | List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. |

oneOf

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionDataRobot | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionUser | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionCustom | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionTableOfContents | false |  | none |

### Enumerated Values

| Property | Value |
| --- | --- |
| projectType | [autoMl, textGeneration, timeSeries] |

## ComplianceDocTemplateCreateResponse

```
{
  "properties": {
    "dateModified": {
      "description": "Timestamp of the created template",
      "format": "date-time",
      "type": "string"
    },
    "id": {
      "description": "Created template Id",
      "type": "string"
    }
  },
  "required": [
    "dateModified",
    "id"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| dateModified | string(date-time) | true |  | Timestamp of the created template |
| id | string | true |  | Created template Id |

## ComplianceDocTemplateDefaultRetrieveResponse

```
{
  "properties": {
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. ",
      "items": {
        "oneOf": [
          {
            "properties": {
              "contentId": {
                "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
                "enum": [
                  "MODEL_DESCRIPTION_AND_OVERVIEW",
                  "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
                  "OVERVIEW_OF_MODEL_RESULTS",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
                  "MODEL_METHODOLOGY",
                  "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
                  "LITERATURE_REVIEW_AND_REFERENCES",
                  "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
                  "PERSONALLY_IDENTIFIABLE_INFORMATION",
                  "DATA_PARTITIONING_METHODOLOGY",
                  "AD_DATA_PARTITIONING_METHODOLOGY",
                  "TS_DATA_PARTITIONING_METHODOLOGY",
                  "QUANTITATIVE_ANALYSIS",
                  "FINAL_MODEL_VARIABLES",
                  "VALIDATION_STABILITY",
                  "MODEL_PERFORMANCE",
                  "ACCURACY_LIFT_CHART",
                  "MULTICLASS_ACCURACY_LIFT_CHART",
                  "SENSITIVITY_ANALYSIS",
                  "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
                  "AD_SENSITIVITY_ANALYSIS",
                  "ACCURACY_OVER_TIME",
                  "ANOMALY_OVER_TIME",
                  "ACCURACY_ROC",
                  "MULTICLASS_CONFUSION",
                  "MODEL_VERSION_CONTROL",
                  "CUSTOM_INFERENCE_VERSION_CONTROL",
                  "FEATURE_ASSOCIATION_MATRIX",
                  "BIAS_AND_FAIRNESS",
                  "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
                  "HOW_TO_USE",
                  "PREFACE",
                  "TS_MODEL_PERFORMANCE",
                  "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
                  "MODEL_DATA_OVERVIEW",
                  "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
                  "MODEL_PERFORMANCE_AND_STABILITY",
                  "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
                  "SENSITIVITY_TESTING_AND_ANALYSIS",
                  "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
                  "MODEL_STAKEHOLDERS",
                  "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "MODEL_INTERDEPENDENCIES",
                  "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
                  "INPUT_DATA_EXTRACTION_PREPARATION",
                  "DATA_ASSUMPTIONS",
                  "CUSTOM_INFERENCE_MODELING_FEATURES",
                  "MODEL_ASSUMPTIONS",
                  "VARIABLE_SELECTION",
                  "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
                  "TS_VARIABLE_SELECTION",
                  "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
                  "KEY_RELATIONSHIPS",
                  "AD_KEY_RELATIONSHIPS",
                  "LLM_SYSTEM_STAKEHOLDERS",
                  "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
                  "LLM_DATA_OVERVIEW",
                  "LLM_RAG_DATA",
                  "LLM_FINE_TUNING_DATA",
                  "LLM_OVERVIEW",
                  "LLM_MODEL_CARD",
                  "LLM_RISKS_AND_LIMITATIONS",
                  "LLM_INTERDEPENDENCIES",
                  "LLM_LITERATURE_REFERENCES",
                  "LLM_EVALUATION",
                  "LLM_COPYRIGHT_CONCERNS",
                  "LLM_REGISTRY_GOVERNANCE",
                  "LLM_REGISTRY_VERSION_CONTROL"
                ],
                "type": "string"
              },
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
                "enum": [
                  "datarobot"
                ],
                "type": "string"
              }
            },
            "required": [
              "contentId",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. Those sections may contain text generated by the user.",
                "enum": [
                  "user"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. It can be a section title or summary. ",
                "enum": [
                  "custom"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Table of contents. This section has no additional attributes.",
                "enum": [
                  "table_of_contents"
                ],
                "type": "string"
              }
            },
            "required": [
              "title",
              "type"
            ],
            "type": "object"
          }
        ]
      },
      "type": "array"
    }
  },
  "required": [
    "sections"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| sections | [oneOf] | true |  | List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. |

oneOf

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionDataRobot | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionUser | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionCustom | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionTableOfContents | false |  | none |

## ComplianceDocTemplateListResponse

```
{
  "properties": {
    "count": {
      "description": "The number of items returned on this page.",
      "type": "integer"
    },
    "data": {
      "description": "List of templates.",
      "items": {
        "properties": {
          "creatorId": {
            "description": "The ID of the user who created the template",
            "type": "string"
          },
          "creatorUsername": {
            "description": "The username of the user who created the template",
            "type": "string"
          },
          "dateModified": {
            "description": "Last date/time of template modification.",
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "description": "An overview of the template",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The ID of the template accessible by the user",
            "type": "string"
          },
          "instructions": {
            "description": "Currently always returns ``null``. Maintained as a placeholder for future functionality.",
            "type": [
              "string",
              "null"
            ]
          },
          "labels": {
            "description": "User-added filtering labels for the template",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "description": "The name of the template",
            "type": "string"
          },
          "orgId": {
            "description": "The ID of the organization the user who created the template belongs to",
            "type": "string"
          },
          "permissions": {
            "description": "The level of permissions for the user viewing this template.",
            "properties": {
              "CAN_DELETE_TEMPLATE": {
                "description": "Whether the current user can delete this template",
                "type": "boolean"
              },
              "CAN_EDIT_TEMPLATE": {
                "description": "Whether the current user can edit this template",
                "type": "boolean"
              },
              "CAN_SHARE": {
                "description": "Whether the current user can share this template",
                "type": "boolean"
              },
              "CAN_USE_TEMPLATE": {
                "description": "Whether the current user can generate documents with this template",
                "type": "boolean"
              },
              "CAN_VIEW": {
                "description": "Whether the current user can view this template",
                "type": "boolean"
              }
            },
            "required": [
              "CAN_DELETE_TEMPLATE",
              "CAN_EDIT_TEMPLATE",
              "CAN_SHARE",
              "CAN_USE_TEMPLATE",
              "CAN_VIEW"
            ],
            "type": "object"
          },
          "projectType": {
            "description": "Type of project template.",
            "enum": [
              "autoMl",
              "textGeneration",
              "timeSeries"
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "sections": {
            "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. ",
            "items": {
              "oneOf": [
                {
                  "properties": {
                    "contentId": {
                      "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
                      "enum": [
                        "MODEL_DESCRIPTION_AND_OVERVIEW",
                        "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
                        "OVERVIEW_OF_MODEL_RESULTS",
                        "MODEL_DEVELOPMENT_OVERVIEW_SUB",
                        "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                        "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                        "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
                        "MODEL_METHODOLOGY",
                        "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
                        "LITERATURE_REVIEW_AND_REFERENCES",
                        "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
                        "PERSONALLY_IDENTIFIABLE_INFORMATION",
                        "DATA_PARTITIONING_METHODOLOGY",
                        "AD_DATA_PARTITIONING_METHODOLOGY",
                        "TS_DATA_PARTITIONING_METHODOLOGY",
                        "QUANTITATIVE_ANALYSIS",
                        "FINAL_MODEL_VARIABLES",
                        "VALIDATION_STABILITY",
                        "MODEL_PERFORMANCE",
                        "ACCURACY_LIFT_CHART",
                        "MULTICLASS_ACCURACY_LIFT_CHART",
                        "SENSITIVITY_ANALYSIS",
                        "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
                        "AD_SENSITIVITY_ANALYSIS",
                        "ACCURACY_OVER_TIME",
                        "ANOMALY_OVER_TIME",
                        "ACCURACY_ROC",
                        "MULTICLASS_CONFUSION",
                        "MODEL_VERSION_CONTROL",
                        "CUSTOM_INFERENCE_VERSION_CONTROL",
                        "FEATURE_ASSOCIATION_MATRIX",
                        "BIAS_AND_FAIRNESS",
                        "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
                        "HOW_TO_USE",
                        "PREFACE",
                        "TS_MODEL_PERFORMANCE",
                        "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
                        "MODEL_DATA_OVERVIEW",
                        "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
                        "MODEL_PERFORMANCE_AND_STABILITY",
                        "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
                        "SENSITIVITY_TESTING_AND_ANALYSIS",
                        "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
                        "MODEL_STAKEHOLDERS",
                        "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                        "MODEL_INTERDEPENDENCIES",
                        "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
                        "INPUT_DATA_EXTRACTION_PREPARATION",
                        "DATA_ASSUMPTIONS",
                        "CUSTOM_INFERENCE_MODELING_FEATURES",
                        "MODEL_ASSUMPTIONS",
                        "VARIABLE_SELECTION",
                        "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
                        "TS_VARIABLE_SELECTION",
                        "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
                        "KEY_RELATIONSHIPS",
                        "AD_KEY_RELATIONSHIPS",
                        "LLM_SYSTEM_STAKEHOLDERS",
                        "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                        "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
                        "LLM_DATA_OVERVIEW",
                        "LLM_RAG_DATA",
                        "LLM_FINE_TUNING_DATA",
                        "LLM_OVERVIEW",
                        "LLM_MODEL_CARD",
                        "LLM_RISKS_AND_LIMITATIONS",
                        "LLM_INTERDEPENDENCIES",
                        "LLM_LITERATURE_REFERENCES",
                        "LLM_EVALUATION",
                        "LLM_COPYRIGHT_CONCERNS",
                        "LLM_REGISTRY_GOVERNANCE",
                        "LLM_REGISTRY_VERSION_CONTROL"
                      ],
                      "type": "string"
                    },
                    "description": {
                      "description": "Section description",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "instructions": {
                      "description": "Section instructions",
                      "properties": {
                        "owner": {
                          "description": "Instructions owner",
                          "type": "string"
                        },
                        "user": {
                          "description": "Instructions user",
                          "type": "string"
                        }
                      },
                      "required": [
                        "owner",
                        "user"
                      ],
                      "type": "object"
                    },
                    "locked": {
                      "description": "Locked section flag",
                      "type": "boolean"
                    },
                    "sections": {
                      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "title": {
                      "description": "Section Title",
                      "maxLength": 500,
                      "type": "string"
                    },
                    "type": {
                      "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
                      "enum": [
                        "datarobot"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "contentId",
                    "title",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "properties": {
                    "description": {
                      "description": "Section description",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "highlightedText": {
                      "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                      "maxLength": 5000,
                      "type": "string"
                    },
                    "instructions": {
                      "description": "Section instructions",
                      "properties": {
                        "owner": {
                          "description": "Instructions owner",
                          "type": "string"
                        },
                        "user": {
                          "description": "Instructions user",
                          "type": "string"
                        }
                      },
                      "required": [
                        "owner",
                        "user"
                      ],
                      "type": "object"
                    },
                    "locked": {
                      "description": "Locked section flag",
                      "type": "boolean"
                    },
                    "regularText": {
                      "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                      "maxLength": 5000,
                      "type": "string"
                    },
                    "sections": {
                      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "title": {
                      "description": "Section Title",
                      "maxLength": 500,
                      "type": "string"
                    },
                    "type": {
                      "description": "Section with user-defined content. Those sections may contain text generated by the user.",
                      "enum": [
                        "user"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "highlightedText",
                    "regularText",
                    "title",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "properties": {
                    "description": {
                      "description": "Section description",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "highlightedText": {
                      "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                      "maxLength": 5000,
                      "type": "string"
                    },
                    "instructions": {
                      "description": "Section instructions",
                      "properties": {
                        "owner": {
                          "description": "Instructions owner",
                          "type": "string"
                        },
                        "user": {
                          "description": "Instructions user",
                          "type": "string"
                        }
                      },
                      "required": [
                        "owner",
                        "user"
                      ],
                      "type": "object"
                    },
                    "locked": {
                      "description": "Locked section flag",
                      "type": "boolean"
                    },
                    "regularText": {
                      "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                      "maxLength": 5000,
                      "type": "string"
                    },
                    "sections": {
                      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "title": {
                      "description": "Section Title",
                      "maxLength": 500,
                      "type": "string"
                    },
                    "type": {
                      "description": "Section with user-defined content. It can be a section title or summary. ",
                      "enum": [
                        "custom"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "highlightedText",
                    "regularText",
                    "title",
                    "type"
                  ],
                  "type": "object"
                },
                {
                  "properties": {
                    "locked": {
                      "description": "Locked section flag",
                      "type": "boolean"
                    },
                    "title": {
                      "description": "Section Title",
                      "maxLength": 500,
                      "type": "string"
                    },
                    "type": {
                      "description": "Table of contents. This section has no additional attributes.",
                      "enum": [
                        "table_of_contents"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type"
                  ],
                  "type": "object"
                }
              ]
            },
            "type": "array"
          }
        },
        "required": [
          "creatorId",
          "creatorUsername",
          "dateModified",
          "description",
          "id",
          "instructions",
          "labels",
          "name",
          "orgId",
          "permissions",
          "projectType",
          "sections"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "next": {
      "description": "The URL of the next page (if null, there is no next page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL of the previous page (if null, there is no previous page).",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "totalCount": {
      "description": "The total number of items across all pages.",
      "type": "integer"
    }
  },
  "required": [
    "data",
    "next",
    "previous",
    "totalCount"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| count | integer | false |  | The number of items returned on this page. |
| data | [TemplateResponse] | true |  | List of templates. |
| next | string,null(uri) | true |  | The URL of the next page (if null, there is no next page). |
| previous | string,null(uri) | true |  | The URL of the previous page (if null, there is no previous page). |
| totalCount | integer | true |  | The total number of items across all pages. |

## ComplianceDocTemplateUpdate

```
{
  "properties": {
    "description": {
      "description": "New description for the template.",
      "type": "string"
    },
    "labels": {
      "description": "Names of the labels to assign to the template.",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-versionadded": "v2.22"
    },
    "name": {
      "description": "New name for the template. Must be unique among templates created by the user.",
      "type": "string"
    },
    "projectType": {
      "description": "Type of project template.",
      "enum": [
        "autoMl",
        "textGeneration",
        "timeSeries"
      ],
      "type": "string",
      "x-versionadded": "v2.22"
    },
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. ",
      "items": {
        "oneOf": [
          {
            "properties": {
              "contentId": {
                "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
                "enum": [
                  "MODEL_DESCRIPTION_AND_OVERVIEW",
                  "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
                  "OVERVIEW_OF_MODEL_RESULTS",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
                  "MODEL_METHODOLOGY",
                  "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
                  "LITERATURE_REVIEW_AND_REFERENCES",
                  "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
                  "PERSONALLY_IDENTIFIABLE_INFORMATION",
                  "DATA_PARTITIONING_METHODOLOGY",
                  "AD_DATA_PARTITIONING_METHODOLOGY",
                  "TS_DATA_PARTITIONING_METHODOLOGY",
                  "QUANTITATIVE_ANALYSIS",
                  "FINAL_MODEL_VARIABLES",
                  "VALIDATION_STABILITY",
                  "MODEL_PERFORMANCE",
                  "ACCURACY_LIFT_CHART",
                  "MULTICLASS_ACCURACY_LIFT_CHART",
                  "SENSITIVITY_ANALYSIS",
                  "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
                  "AD_SENSITIVITY_ANALYSIS",
                  "ACCURACY_OVER_TIME",
                  "ANOMALY_OVER_TIME",
                  "ACCURACY_ROC",
                  "MULTICLASS_CONFUSION",
                  "MODEL_VERSION_CONTROL",
                  "CUSTOM_INFERENCE_VERSION_CONTROL",
                  "FEATURE_ASSOCIATION_MATRIX",
                  "BIAS_AND_FAIRNESS",
                  "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
                  "HOW_TO_USE",
                  "PREFACE",
                  "TS_MODEL_PERFORMANCE",
                  "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
                  "MODEL_DATA_OVERVIEW",
                  "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
                  "MODEL_PERFORMANCE_AND_STABILITY",
                  "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
                  "SENSITIVITY_TESTING_AND_ANALYSIS",
                  "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
                  "MODEL_STAKEHOLDERS",
                  "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "MODEL_INTERDEPENDENCIES",
                  "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
                  "INPUT_DATA_EXTRACTION_PREPARATION",
                  "DATA_ASSUMPTIONS",
                  "CUSTOM_INFERENCE_MODELING_FEATURES",
                  "MODEL_ASSUMPTIONS",
                  "VARIABLE_SELECTION",
                  "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
                  "TS_VARIABLE_SELECTION",
                  "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
                  "KEY_RELATIONSHIPS",
                  "AD_KEY_RELATIONSHIPS",
                  "LLM_SYSTEM_STAKEHOLDERS",
                  "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
                  "LLM_DATA_OVERVIEW",
                  "LLM_RAG_DATA",
                  "LLM_FINE_TUNING_DATA",
                  "LLM_OVERVIEW",
                  "LLM_MODEL_CARD",
                  "LLM_RISKS_AND_LIMITATIONS",
                  "LLM_INTERDEPENDENCIES",
                  "LLM_LITERATURE_REFERENCES",
                  "LLM_EVALUATION",
                  "LLM_COPYRIGHT_CONCERNS",
                  "LLM_REGISTRY_GOVERNANCE",
                  "LLM_REGISTRY_VERSION_CONTROL"
                ],
                "type": "string"
              },
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
                "enum": [
                  "datarobot"
                ],
                "type": "string"
              }
            },
            "required": [
              "contentId",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. Those sections may contain text generated by the user.",
                "enum": [
                  "user"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. It can be a section title or summary. ",
                "enum": [
                  "custom"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Table of contents. This section has no additional attributes.",
                "enum": [
                  "table_of_contents"
                ],
                "type": "string"
              }
            },
            "required": [
              "title",
              "type"
            ],
            "type": "object"
          }
        ]
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| description | string | false |  | New description for the template. |
| labels | [string] | false |  | Names of the labels to assign to the template. |
| name | string | false |  | New name for the template. Must be unique among templates created by the user. |
| projectType | string | false |  | Type of project template. |
| sections | [oneOf] | false |  | List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. |

oneOf

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionDataRobot | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionUser | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionCustom | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionTableOfContents | false |  | none |

### Enumerated Values

| Property | Value |
| --- | --- |
| projectType | [autoMl, textGeneration, timeSeries] |

## DocTypeSpecificInfoDeploymentReport

```
{
  "properties": {
    "endDate": {
      "description": "End date of selected data in the document.",
      "format": "date-time",
      "type": "string"
    },
    "modelName": {
      "description": "Name of the deployed model.",
      "type": "string"
    },
    "startDate": {
      "description": "Start date of selected data in the document.",
      "format": "date-time",
      "type": "string"
    }
  },
  "required": [
    "endDate",
    "startDate"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| endDate | string(date-time) | true |  | End date of selected data in the document. |
| modelName | string | false |  | Name of the deployed model. |
| startDate | string(date-time) | true |  | Start date of selected data in the document. |

## DocTypeSpecificInfoModelCompliance

```
{
  "type": "object"
}
```

### Properties

None

## Empty

```
{
  "type": "object"
}
```

### Properties

None

## GrantAccessControlWithId

```
{
  "properties": {
    "id": {
      "description": "The ID of the recipient.",
      "type": "string"
    },
    "role": {
      "description": "The role of the recipient on this entity.",
      "enum": [
        "ADMIN",
        "CONSUMER",
        "DATA_SCIENTIST",
        "EDITOR",
        "NO_ROLE",
        "OBSERVER",
        "OWNER",
        "READ_ONLY",
        "READ_WRITE",
        "USER"
      ],
      "type": "string"
    },
    "shareRecipientType": {
      "description": "Describes the recipient type, either user, group, or organization.",
      "enum": [
        "user",
        "group",
        "organization"
      ],
      "type": "string"
    }
  },
  "required": [
    "id",
    "role",
    "shareRecipientType"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| id | string | true |  | The ID of the recipient. |
| role | string | true |  | The role of the recipient on this entity. |
| shareRecipientType | string | true |  | Describes the recipient type, either user, group, or organization. |

### Enumerated Values

| Property | Value |
| --- | --- |
| role | [ADMIN, CONSUMER, DATA_SCIENTIST, EDITOR, NO_ROLE, OBSERVER, OWNER, READ_ONLY, READ_WRITE, USER] |
| shareRecipientType | [user, group, organization] |

## GrantAccessControlWithUsername

```
{
  "properties": {
    "role": {
      "description": "The role of the recipient on this entity.",
      "enum": [
        "ADMIN",
        "CONSUMER",
        "DATA_SCIENTIST",
        "EDITOR",
        "NO_ROLE",
        "OBSERVER",
        "OWNER",
        "READ_ONLY",
        "READ_WRITE",
        "USER"
      ],
      "type": "string"
    },
    "shareRecipientType": {
      "description": "Describes the recipient type, either user, group, or organization.",
      "enum": [
        "user",
        "group",
        "organization"
      ],
      "type": "string"
    },
    "username": {
      "description": "Username of the user to update the access role for.",
      "type": "string"
    }
  },
  "required": [
    "role",
    "shareRecipientType",
    "username"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| role | string | true |  | The role of the recipient on this entity. |
| shareRecipientType | string | true |  | Describes the recipient type, either user, group, or organization. |
| username | string | true |  | Username of the user to update the access role for. |

### Enumerated Values

| Property | Value |
| --- | --- |
| role | [ADMIN, CONSUMER, DATA_SCIENTIST, EDITOR, NO_ROLE, OBSERVER, OWNER, READ_ONLY, READ_WRITE, USER] |
| shareRecipientType | [user, group, organization] |

## InstructionsField

```
{
  "description": "Section instructions",
  "properties": {
    "owner": {
      "description": "Instructions owner",
      "type": "string"
    },
    "user": {
      "description": "Instructions user",
      "type": "string"
    }
  },
  "required": [
    "owner",
    "user"
  ],
  "type": "object"
}
```

Section instructions

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| owner | string | true |  | Instructions owner |
| user | string | true |  | Instructions user |

## ModelComplianceDocsInitializationsResponse

```
{
  "properties": {
    "initialized": {
      "description": "Whether compliance documentation pre-preprocessing is initialized for the model",
      "type": "boolean"
    },
    "status": {
      "description": "Compliance documentation pre-processing initialization status",
      "enum": [
        "initialized",
        "initializationInProgress",
        "notRequested",
        "noTrainingData",
        "trainingDataAssignmentInProgress",
        "initializationError"
      ],
      "type": "string"
    }
  },
  "required": [
    "initialized",
    "status"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| initialized | boolean | true |  | Whether compliance documentation pre-preprocessing is initialized for the model |
| status | string | true |  | Compliance documentation pre-processing initialization status |

### Enumerated Values

| Property | Value |
| --- | --- |
| status | [initialized, initializationInProgress, notRequested, noTrainingData, trainingDataAssignmentInProgress, initializationError] |

## SampleSection

```
{
  "type": "object"
}
```

### Properties

None

## SectionCustom

```
{
  "properties": {
    "description": {
      "description": "Section description",
      "type": [
        "string",
        "null"
      ]
    },
    "highlightedText": {
      "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
      "maxLength": 5000,
      "type": "string"
    },
    "instructions": {
      "description": "Section instructions",
      "properties": {
        "owner": {
          "description": "Instructions owner",
          "type": "string"
        },
        "user": {
          "description": "Instructions user",
          "type": "string"
        }
      },
      "required": [
        "owner",
        "user"
      ],
      "type": "object"
    },
    "locked": {
      "description": "Locked section flag",
      "type": "boolean"
    },
    "regularText": {
      "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
      "maxLength": 5000,
      "type": "string"
    },
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "title": {
      "description": "Section Title",
      "maxLength": 500,
      "type": "string"
    },
    "type": {
      "description": "Section with user-defined content. It can be a section title or summary. ",
      "enum": [
        "custom"
      ],
      "type": "string"
    }
  },
  "required": [
    "highlightedText",
    "regularText",
    "title",
    "type"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| description | string,null | false |  | Section description |
| highlightedText | string | true | maxLength: 5000 | Highlighted text of the section, optionally separated by \n to split paragraphs. |
| instructions | InstructionsField | false |  | Section instructions |
| locked | boolean | false |  | Locked section flag |
| regularText | string | true | maxLength: 5000 | Regular text of the section, optionally separated by \n to split paragraphs. |
| sections | [SampleSection] | false |  | List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. |
| title | string | true | maxLength: 500 | Section Title |
| type | string | true |  | Section with user-defined content. It can be a section title or summary. |

### Enumerated Values

| Property | Value |
| --- | --- |
| type | custom |

## SectionDataRobot

```
{
  "properties": {
    "contentId": {
      "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
      "enum": [
        "MODEL_DESCRIPTION_AND_OVERVIEW",
        "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
        "OVERVIEW_OF_MODEL_RESULTS",
        "MODEL_DEVELOPMENT_OVERVIEW_SUB",
        "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
        "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
        "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
        "MODEL_METHODOLOGY",
        "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
        "LITERATURE_REVIEW_AND_REFERENCES",
        "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
        "PERSONALLY_IDENTIFIABLE_INFORMATION",
        "DATA_PARTITIONING_METHODOLOGY",
        "AD_DATA_PARTITIONING_METHODOLOGY",
        "TS_DATA_PARTITIONING_METHODOLOGY",
        "QUANTITATIVE_ANALYSIS",
        "FINAL_MODEL_VARIABLES",
        "VALIDATION_STABILITY",
        "MODEL_PERFORMANCE",
        "ACCURACY_LIFT_CHART",
        "MULTICLASS_ACCURACY_LIFT_CHART",
        "SENSITIVITY_ANALYSIS",
        "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
        "AD_SENSITIVITY_ANALYSIS",
        "ACCURACY_OVER_TIME",
        "ANOMALY_OVER_TIME",
        "ACCURACY_ROC",
        "MULTICLASS_CONFUSION",
        "MODEL_VERSION_CONTROL",
        "CUSTOM_INFERENCE_VERSION_CONTROL",
        "FEATURE_ASSOCIATION_MATRIX",
        "BIAS_AND_FAIRNESS",
        "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
        "HOW_TO_USE",
        "PREFACE",
        "TS_MODEL_PERFORMANCE",
        "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
        "MODEL_DATA_OVERVIEW",
        "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
        "MODEL_PERFORMANCE_AND_STABILITY",
        "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
        "SENSITIVITY_TESTING_AND_ANALYSIS",
        "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
        "MODEL_STAKEHOLDERS",
        "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
        "MODEL_INTERDEPENDENCIES",
        "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
        "INPUT_DATA_EXTRACTION_PREPARATION",
        "DATA_ASSUMPTIONS",
        "CUSTOM_INFERENCE_MODELING_FEATURES",
        "MODEL_ASSUMPTIONS",
        "VARIABLE_SELECTION",
        "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
        "TS_VARIABLE_SELECTION",
        "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
        "KEY_RELATIONSHIPS",
        "AD_KEY_RELATIONSHIPS",
        "LLM_SYSTEM_STAKEHOLDERS",
        "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
        "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
        "LLM_DATA_OVERVIEW",
        "LLM_RAG_DATA",
        "LLM_FINE_TUNING_DATA",
        "LLM_OVERVIEW",
        "LLM_MODEL_CARD",
        "LLM_RISKS_AND_LIMITATIONS",
        "LLM_INTERDEPENDENCIES",
        "LLM_LITERATURE_REFERENCES",
        "LLM_EVALUATION",
        "LLM_COPYRIGHT_CONCERNS",
        "LLM_REGISTRY_GOVERNANCE",
        "LLM_REGISTRY_VERSION_CONTROL"
      ],
      "type": "string"
    },
    "description": {
      "description": "Section description",
      "type": [
        "string",
        "null"
      ]
    },
    "instructions": {
      "description": "Section instructions",
      "properties": {
        "owner": {
          "description": "Instructions owner",
          "type": "string"
        },
        "user": {
          "description": "Instructions user",
          "type": "string"
        }
      },
      "required": [
        "owner",
        "user"
      ],
      "type": "object"
    },
    "locked": {
      "description": "Locked section flag",
      "type": "boolean"
    },
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "title": {
      "description": "Section Title",
      "maxLength": 500,
      "type": "string"
    },
    "type": {
      "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
      "enum": [
        "datarobot"
      ],
      "type": "string"
    }
  },
  "required": [
    "contentId",
    "title",
    "type"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| contentId | string | true |  | The identifier of the content in the section. This attribute identifies what is going to be rendered in the section. |
| description | string,null | false |  | Section description |
| instructions | InstructionsField | false |  | Section instructions |
| locked | boolean | false |  | Locked section flag |
| sections | [SampleSection] | false |  | List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. |
| title | string | true | maxLength: 500 | Section Title |
| type | string | true |  | Section owned by DataRobot. The content of this section type is controlled by DataRobot (see contentId attribute). Users can add sub-sections to it. |

### Enumerated Values

| Property | Value |
| --- | --- |
| contentId | [MODEL_DESCRIPTION_AND_OVERVIEW, MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION, OVERVIEW_OF_MODEL_RESULTS, MODEL_DEVELOPMENT_OVERVIEW_SUB, TS_MODEL_DEVELOPMENT_OVERVIEW_SUB, AD_MODEL_DEVELOPMENT_OVERVIEW_SUB, MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION, MODEL_METHODOLOGY, MODEL_METHODOLOGY_EXTERNAL_PREDICTION, LITERATURE_REVIEW_AND_REFERENCES, ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED, PERSONALLY_IDENTIFIABLE_INFORMATION, DATA_PARTITIONING_METHODOLOGY, AD_DATA_PARTITIONING_METHODOLOGY, TS_DATA_PARTITIONING_METHODOLOGY, QUANTITATIVE_ANALYSIS, FINAL_MODEL_VARIABLES, VALIDATION_STABILITY, MODEL_PERFORMANCE, ACCURACY_LIFT_CHART, MULTICLASS_ACCURACY_LIFT_CHART, SENSITIVITY_ANALYSIS, SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION, AD_SENSITIVITY_ANALYSIS, ACCURACY_OVER_TIME, ANOMALY_OVER_TIME, ACCURACY_ROC, MULTICLASS_CONFUSION, MODEL_VERSION_CONTROL, CUSTOM_INFERENCE_VERSION_CONTROL, FEATURE_ASSOCIATION_MATRIX, BIAS_AND_FAIRNESS, BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION, HOW_TO_USE, PREFACE, TS_MODEL_PERFORMANCE, EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW, MODEL_DATA_OVERVIEW, MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY, MODEL_PERFORMANCE_AND_STABILITY, CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY, SENSITIVITY_TESTING_AND_ANALYSIS, MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING, MODEL_STAKEHOLDERS, MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE, MODEL_INTERDEPENDENCIES, DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS, INPUT_DATA_EXTRACTION_PREPARATION, DATA_ASSUMPTIONS, CUSTOM_INFERENCE_MODELING_FEATURES, MODEL_ASSUMPTIONS, VARIABLE_SELECTION, VARIABLE_SELECTION_EXTERNAL_PREDICTION, TS_VARIABLE_SELECTION, EXPERT_JUDGEMENT_AND_VAR_SELECTION, KEY_RELATIONSHIPS, AD_KEY_RELATIONSHIPS, LLM_SYSTEM_STAKEHOLDERS, LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE, GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW, LLM_DATA_OVERVIEW, LLM_RAG_DATA, LLM_FINE_TUNING_DATA, LLM_OVERVIEW, LLM_MODEL_CARD, LLM_RISKS_AND_LIMITATIONS, LLM_INTERDEPENDENCIES, LLM_LITERATURE_REFERENCES, LLM_EVALUATION, LLM_COPYRIGHT_CONCERNS, LLM_REGISTRY_GOVERNANCE, LLM_REGISTRY_VERSION_CONTROL] |
| type | datarobot |

## SectionTableOfContents

```
{
  "properties": {
    "locked": {
      "description": "Locked section flag",
      "type": "boolean"
    },
    "title": {
      "description": "Section Title",
      "maxLength": 500,
      "type": "string"
    },
    "type": {
      "description": "Table of contents. This section has no additional attributes.",
      "enum": [
        "table_of_contents"
      ],
      "type": "string"
    }
  },
  "required": [
    "title",
    "type"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| locked | boolean | false |  | Locked section flag |
| title | string | true | maxLength: 500 | Section Title |
| type | string | true |  | Table of contents. This section has no additional attributes. |

### Enumerated Values

| Property | Value |
| --- | --- |
| type | table_of_contents |

## SectionUser

```
{
  "properties": {
    "description": {
      "description": "Section description",
      "type": [
        "string",
        "null"
      ]
    },
    "highlightedText": {
      "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
      "maxLength": 5000,
      "type": "string"
    },
    "instructions": {
      "description": "Section instructions",
      "properties": {
        "owner": {
          "description": "Instructions owner",
          "type": "string"
        },
        "user": {
          "description": "Instructions user",
          "type": "string"
        }
      },
      "required": [
        "owner",
        "user"
      ],
      "type": "object"
    },
    "locked": {
      "description": "Locked section flag",
      "type": "boolean"
    },
    "regularText": {
      "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
      "maxLength": 5000,
      "type": "string"
    },
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "title": {
      "description": "Section Title",
      "maxLength": 500,
      "type": "string"
    },
    "type": {
      "description": "Section with user-defined content. Those sections may contain text generated by the user.",
      "enum": [
        "user"
      ],
      "type": "string"
    }
  },
  "required": [
    "highlightedText",
    "regularText",
    "title",
    "type"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| description | string,null | false |  | Section description |
| highlightedText | string | true | maxLength: 5000 | Highlighted text of the section, optionally separated by \n to split paragraphs. |
| instructions | InstructionsField | false |  | Section instructions |
| locked | boolean | false |  | Locked section flag |
| regularText | string | true | maxLength: 5000 | Regular text of the section, optionally separated by \n to split paragraphs. |
| sections | [SampleSection] | false |  | List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. |
| title | string | true | maxLength: 500 | Section Title |
| type | string | true |  | Section with user-defined content. Those sections may contain text generated by the user. |

### Enumerated Values

| Property | Value |
| --- | --- |
| type | user |

## SharedRolesUpdate

```
{
  "properties": {
    "operation": {
      "description": "Name of the action being taken. The only operation is 'updateRoles'.",
      "enum": [
        "updateRoles"
      ],
      "type": "string"
    },
    "roles": {
      "description": "Array of GrantAccessControl objects., up to maximum 100 objects.",
      "items": {
        "oneOf": [
          {
            "properties": {
              "role": {
                "description": "The role of the recipient on this entity.",
                "enum": [
                  "ADMIN",
                  "CONSUMER",
                  "DATA_SCIENTIST",
                  "EDITOR",
                  "NO_ROLE",
                  "OBSERVER",
                  "OWNER",
                  "READ_ONLY",
                  "READ_WRITE",
                  "USER"
                ],
                "type": "string"
              },
              "shareRecipientType": {
                "description": "Describes the recipient type, either user, group, or organization.",
                "enum": [
                  "user",
                  "group",
                  "organization"
                ],
                "type": "string"
              },
              "username": {
                "description": "Username of the user to update the access role for.",
                "type": "string"
              }
            },
            "required": [
              "role",
              "shareRecipientType",
              "username"
            ],
            "type": "object"
          },
          {
            "properties": {
              "id": {
                "description": "The ID of the recipient.",
                "type": "string"
              },
              "role": {
                "description": "The role of the recipient on this entity.",
                "enum": [
                  "ADMIN",
                  "CONSUMER",
                  "DATA_SCIENTIST",
                  "EDITOR",
                  "NO_ROLE",
                  "OBSERVER",
                  "OWNER",
                  "READ_ONLY",
                  "READ_WRITE",
                  "USER"
                ],
                "type": "string"
              },
              "shareRecipientType": {
                "description": "Describes the recipient type, either user, group, or organization.",
                "enum": [
                  "user",
                  "group",
                  "organization"
                ],
                "type": "string"
              }
            },
            "required": [
              "id",
              "role",
              "shareRecipientType"
            ],
            "type": "object"
          }
        ]
      },
      "maxItems": 100,
      "minItems": 1,
      "type": "array"
    }
  },
  "required": [
    "operation",
    "roles"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| operation | string | true |  | Name of the action being taken. The only operation is 'updateRoles'. |
| roles | [oneOf] | true | maxItems: 100minItems: 1 | Array of GrantAccessControl objects., up to maximum 100 objects. |

oneOf

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | GrantAccessControlWithUsername | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | GrantAccessControlWithId | false |  | none |

### Enumerated Values

| Property | Value |
| --- | --- |
| operation | updateRoles |

## SharingListV2Response

```
{
  "properties": {
    "count": {
      "description": "The number of items returned.",
      "type": "integer"
    },
    "data": {
      "description": "The access control list.",
      "items": {
        "properties": {
          "id": {
            "description": "The identifier of the recipient.",
            "type": "string"
          },
          "name": {
            "description": "The name of the recipient.",
            "type": "string"
          },
          "role": {
            "description": "The role of the recipient on this entity.",
            "enum": [
              "ADMIN",
              "CONSUMER",
              "DATA_SCIENTIST",
              "EDITOR",
              "OBSERVER",
              "OWNER",
              "READ_ONLY",
              "READ_WRITE",
              "USER"
            ],
            "type": "string"
          },
          "shareRecipientType": {
            "description": "The type of the recipient.",
            "enum": [
              "user",
              "group",
              "organization"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "role",
          "shareRecipientType"
        ],
        "type": "object"
      },
      "maxItems": 1000,
      "type": "array"
    },
    "next": {
      "description": "The URL pointing to the next page.",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "description": "The URL pointing to the previous page.",
      "type": [
        "string",
        "null"
      ]
    },
    "totalCount": {
      "description": "The total number of items matching the condition.",
      "type": "integer"
    }
  },
  "required": [
    "count",
    "data",
    "next",
    "previous",
    "totalCount"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| count | integer | true |  | The number of items returned. |
| data | [AccessControlV2] | true | maxItems: 1000 | The access control list. |
| next | string,null | true |  | The URL pointing to the next page. |
| previous | string,null | true |  | The URL pointing to the previous page. |
| totalCount | integer | true |  | The total number of items matching the condition. |

## TemplatePermissionsResponse

```
{
  "description": "The level of permissions for the user viewing this template.",
  "properties": {
    "CAN_DELETE_TEMPLATE": {
      "description": "Whether the current user can delete this template",
      "type": "boolean"
    },
    "CAN_EDIT_TEMPLATE": {
      "description": "Whether the current user can edit this template",
      "type": "boolean"
    },
    "CAN_SHARE": {
      "description": "Whether the current user can share this template",
      "type": "boolean"
    },
    "CAN_USE_TEMPLATE": {
      "description": "Whether the current user can generate documents with this template",
      "type": "boolean"
    },
    "CAN_VIEW": {
      "description": "Whether the current user can view this template",
      "type": "boolean"
    }
  },
  "required": [
    "CAN_DELETE_TEMPLATE",
    "CAN_EDIT_TEMPLATE",
    "CAN_SHARE",
    "CAN_USE_TEMPLATE",
    "CAN_VIEW"
  ],
  "type": "object"
}
```

The level of permissions for the user viewing this template.

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| CAN_DELETE_TEMPLATE | boolean | true |  | Whether the current user can delete this template |
| CAN_EDIT_TEMPLATE | boolean | true |  | Whether the current user can edit this template |
| CAN_SHARE | boolean | true |  | Whether the current user can share this template |
| CAN_USE_TEMPLATE | boolean | true |  | Whether the current user can generate documents with this template |
| CAN_VIEW | boolean | true |  | Whether the current user can view this template |

## TemplateResponse

```
{
  "properties": {
    "creatorId": {
      "description": "The ID of the user who created the template",
      "type": "string"
    },
    "creatorUsername": {
      "description": "The username of the user who created the template",
      "type": "string"
    },
    "dateModified": {
      "description": "Last date/time of template modification.",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "description": "An overview of the template",
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "description": "The ID of the template accessible by the user",
      "type": "string"
    },
    "instructions": {
      "description": "Currently always returns ``null``. Maintained as a placeholder for future functionality.",
      "type": [
        "string",
        "null"
      ]
    },
    "labels": {
      "description": "User-added filtering labels for the template",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "name": {
      "description": "The name of the template",
      "type": "string"
    },
    "orgId": {
      "description": "The ID of the organization the user who created the template belongs to",
      "type": "string"
    },
    "permissions": {
      "description": "The level of permissions for the user viewing this template.",
      "properties": {
        "CAN_DELETE_TEMPLATE": {
          "description": "Whether the current user can delete this template",
          "type": "boolean"
        },
        "CAN_EDIT_TEMPLATE": {
          "description": "Whether the current user can edit this template",
          "type": "boolean"
        },
        "CAN_SHARE": {
          "description": "Whether the current user can share this template",
          "type": "boolean"
        },
        "CAN_USE_TEMPLATE": {
          "description": "Whether the current user can generate documents with this template",
          "type": "boolean"
        },
        "CAN_VIEW": {
          "description": "Whether the current user can view this template",
          "type": "boolean"
        }
      },
      "required": [
        "CAN_DELETE_TEMPLATE",
        "CAN_EDIT_TEMPLATE",
        "CAN_SHARE",
        "CAN_USE_TEMPLATE",
        "CAN_VIEW"
      ],
      "type": "object"
    },
    "projectType": {
      "description": "Type of project template.",
      "enum": [
        "autoMl",
        "textGeneration",
        "timeSeries"
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "sections": {
      "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. ",
      "items": {
        "oneOf": [
          {
            "properties": {
              "contentId": {
                "description": "The identifier of the content in the section. This attribute identifies what is going to be rendered in the section.",
                "enum": [
                  "MODEL_DESCRIPTION_AND_OVERVIEW",
                  "MODEL_DESCRIPTION_AND_OVERVIEW_EXTERNAL_PREDICTION",
                  "OVERVIEW_OF_MODEL_RESULTS",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "TS_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "AD_MODEL_DEVELOPMENT_OVERVIEW_SUB",
                  "MODEL_DEVELOPMENT_OVERVIEW_SUB_EXTERNAL_PREDICTION",
                  "MODEL_METHODOLOGY",
                  "MODEL_METHODOLOGY_EXTERNAL_PREDICTION",
                  "LITERATURE_REVIEW_AND_REFERENCES",
                  "ALTERNATIVE_MODEL_FRAMEWORKS_AND_THEORIES_CONSIDERED",
                  "PERSONALLY_IDENTIFIABLE_INFORMATION",
                  "DATA_PARTITIONING_METHODOLOGY",
                  "AD_DATA_PARTITIONING_METHODOLOGY",
                  "TS_DATA_PARTITIONING_METHODOLOGY",
                  "QUANTITATIVE_ANALYSIS",
                  "FINAL_MODEL_VARIABLES",
                  "VALIDATION_STABILITY",
                  "MODEL_PERFORMANCE",
                  "ACCURACY_LIFT_CHART",
                  "MULTICLASS_ACCURACY_LIFT_CHART",
                  "SENSITIVITY_ANALYSIS",
                  "SENSITIVITY_ANALYSIS_NO_NULL_IMPUTATION",
                  "AD_SENSITIVITY_ANALYSIS",
                  "ACCURACY_OVER_TIME",
                  "ANOMALY_OVER_TIME",
                  "ACCURACY_ROC",
                  "MULTICLASS_CONFUSION",
                  "MODEL_VERSION_CONTROL",
                  "CUSTOM_INFERENCE_VERSION_CONTROL",
                  "FEATURE_ASSOCIATION_MATRIX",
                  "BIAS_AND_FAIRNESS",
                  "BIAS_AND_FAIRNESS_EXTERNAL_PREDICTION",
                  "HOW_TO_USE",
                  "PREFACE",
                  "TS_MODEL_PERFORMANCE",
                  "EXECUTIVE_SUMMARY_AND_MODEL_OVERVIEW",
                  "MODEL_DATA_OVERVIEW",
                  "MODEL_THEORETICAL_FRAMEWORK_AND_METHODOLOGY",
                  "MODEL_PERFORMANCE_AND_STABILITY",
                  "CUSTOM_INFERENCE_PERFORMANCE_AND_STABILITY",
                  "SENSITIVITY_TESTING_AND_ANALYSIS",
                  "MODEL_IMPLEMENTATION_AND_OUTPUT_REPORTING",
                  "MODEL_STAKEHOLDERS",
                  "MODEL_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "MODEL_INTERDEPENDENCIES",
                  "DATA_SOURCE_OVERVIEW_AND_APPROPRIATENESS",
                  "INPUT_DATA_EXTRACTION_PREPARATION",
                  "DATA_ASSUMPTIONS",
                  "CUSTOM_INFERENCE_MODELING_FEATURES",
                  "MODEL_ASSUMPTIONS",
                  "VARIABLE_SELECTION",
                  "VARIABLE_SELECTION_EXTERNAL_PREDICTION",
                  "TS_VARIABLE_SELECTION",
                  "EXPERT_JUDGEMENT_AND_VAR_SELECTION",
                  "KEY_RELATIONSHIPS",
                  "AD_KEY_RELATIONSHIPS",
                  "LLM_SYSTEM_STAKEHOLDERS",
                  "LLM_DEVELOPMENT_PURPOSE_AND_INTENDED_USE",
                  "GEN_AI_LLM_SYSTEM_DESCRIPTION_AND_OVERVIEW",
                  "LLM_DATA_OVERVIEW",
                  "LLM_RAG_DATA",
                  "LLM_FINE_TUNING_DATA",
                  "LLM_OVERVIEW",
                  "LLM_MODEL_CARD",
                  "LLM_RISKS_AND_LIMITATIONS",
                  "LLM_INTERDEPENDENCIES",
                  "LLM_LITERATURE_REFERENCES",
                  "LLM_EVALUATION",
                  "LLM_COPYRIGHT_CONCERNS",
                  "LLM_REGISTRY_GOVERNANCE",
                  "LLM_REGISTRY_VERSION_CONTROL"
                ],
                "type": "string"
              },
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section owned by DataRobot. The content of this section type is controlled by DataRobot (see ``contentId`` attribute). Users can add sub-sections to it.",
                "enum": [
                  "datarobot"
                ],
                "type": "string"
              }
            },
            "required": [
              "contentId",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. Those sections may contain text generated by the user.",
                "enum": [
                  "user"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "description": {
                "description": "Section description",
                "type": [
                  "string",
                  "null"
                ]
              },
              "highlightedText": {
                "description": "Highlighted text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "instructions": {
                "description": "Section instructions",
                "properties": {
                  "owner": {
                    "description": "Instructions owner",
                    "type": "string"
                  },
                  "user": {
                    "description": "Instructions user",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "user"
                ],
                "type": "object"
              },
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "regularText": {
                "description": "Regular text of the section, optionally separated by ``\\n`` to split paragraphs.",
                "maxLength": 5000,
                "type": "string"
              },
              "sections": {
                "description": "List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, e.g. the structure is recursive. The limit of nesting sections is 5. Total number of sections is limited to 500. ",
                "items": {
                  "type": "object"
                },
                "type": "array"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Section with user-defined content. It can be a section title or summary. ",
                "enum": [
                  "custom"
                ],
                "type": "string"
              }
            },
            "required": [
              "highlightedText",
              "regularText",
              "title",
              "type"
            ],
            "type": "object"
          },
          {
            "properties": {
              "locked": {
                "description": "Locked section flag",
                "type": "boolean"
              },
              "title": {
                "description": "Section Title",
                "maxLength": 500,
                "type": "string"
              },
              "type": {
                "description": "Table of contents. This section has no additional attributes.",
                "enum": [
                  "table_of_contents"
                ],
                "type": "string"
              }
            },
            "required": [
              "title",
              "type"
            ],
            "type": "object"
          }
        ]
      },
      "type": "array"
    }
  },
  "required": [
    "creatorId",
    "creatorUsername",
    "dateModified",
    "description",
    "id",
    "instructions",
    "labels",
    "name",
    "orgId",
    "permissions",
    "projectType",
    "sections"
  ],
  "type": "object"
}
```

### Properties

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| creatorId | string | true |  | The ID of the user who created the template |
| creatorUsername | string | true |  | The username of the user who created the template |
| dateModified | string,null(date-time) | true |  | Last date/time of template modification. |
| description | string,null | true |  | An overview of the template |
| id | string | true |  | The ID of the template accessible by the user |
| instructions | string,null | true |  | Currently always returns null. Maintained as a placeholder for future functionality. |
| labels | [string] | true |  | User-added filtering labels for the template |
| name | string | true |  | The name of the template |
| orgId | string | true |  | The ID of the organization the user who created the template belongs to |
| permissions | TemplatePermissionsResponse | true |  | The level of permissions for the user viewing this template. |
| projectType | string,null | true |  | Type of project template. |
| sections | [oneOf] | true |  | List of section objects representing the structure of the document. Each section can have sub-sections that have the same schema as the parent section, i.e., the structure is recursive. The number of nested sections allowed is 5. The total number of sections allowed is 500. |

oneOf

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionDataRobot | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionUser | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionCustom | false |  | none |

xor

| Name | Type | Required | Restrictions | Description |
| --- | --- | --- | --- | --- |
| » anonymous | SectionTableOfContents | false |  | none |

### Enumerated Values

| Property | Value |
| --- | --- |
| projectType | [autoMl, textGeneration, timeSeries] |

---
