---
updatedAt: 2025-06-05T01:08:02.000Z
agentTools:
  projectIndex: https://api.portal.xpertdoc.com/llms.txt
---

# Create

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "odata4-v6",
    "version": "5.0"
  },
  "servers": [
    {
      "url": "https://portal.xpertdoc.com/odata4/v6"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/TemplateGroups()": {
      "post": {
        "summary": "Create",
        "description": "",
        "operationId": "create-templategroup",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "Name": {
                    "type": "string"
                  },
                  "TemplateLibraryId": {
                    "type": "string"
                  },
                  "AddInContractName": {
                    "type": "string",
                    "default": "XML data provider"
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "AddInContractName": "XML data provider",
                    "Name": "Group Name",
                    "TemplateLibraryId": "00000000-0000-0000-0000-000000000000"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"@odata.context\":\"http://portal.xpertdoc.com/odata4/v6/$metadata#TemplateGroups\",\n\t\"TemplateGroupId\": \"00000000-0000-0000-0000-000000000000\",\n\t\"TemplateLibraryId\": \"00000000-0000-0000-0000-000000000000\",\n\t\"Name\": \"Name\",\n\t\"Description\": null,\n\t\"AddInContractName\": \"XML data provider\",\n\t\"AddInMetadata\": null,\n\t\"TemplateExecutionLabel\": null,\n\t\"Metadata\": null,\n\t\"UseParentDocumentOutputPostActions\": false,\n\t\"CreatedByUserProfileId\": \"00000000-0000-0000-0000-000000000000\",\n\t\"CreatedDate\": \"2015-01-01T00:00:00.0000000Z\",\n\t\"ModifiedByUserProfileId\": \"00000000-0000-0000-0000-000000000000\",\n\t\"ModifiedDate\": \"2015-01-01T00:00:00.0000000Z\",\n\t\"Timestamp\": \"AAAAAAABjlk=\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "@odata.context": {
                      "type": "string",
                      "example": "http://portal.xpertdoc.com/odata4/v6/$metadata#TemplateGroups"
                    },
                    "TemplateGroupId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000"
                    },
                    "TemplateLibraryId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000"
                    },
                    "Name": {
                      "type": "string",
                      "example": "Name"
                    },
                    "Description": {},
                    "AddInContractName": {
                      "type": "string",
                      "example": "XML data provider"
                    },
                    "AddInMetadata": {},
                    "TemplateExecutionLabel": {},
                    "Metadata": {},
                    "UseParentDocumentOutputPostActions": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "CreatedByUserProfileId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000"
                    },
                    "CreatedDate": {
                      "type": "string",
                      "example": "2015-01-01T00:00:00.0000000Z"
                    },
                    "ModifiedByUserProfileId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000"
                    },
                    "ModifiedDate": {
                      "type": "string",
                      "example": "2015-01-01T00:00:00.0000000Z"
                    },
                    "Timestamp": {
                      "type": "string",
                      "example": "AAAAAAABjlk="
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"odata.error\":{\n    \"code\":\"\",\"message\":{\n      \"lang\":\"en-US\",\"value\":\"An error has occurred.\"\n    }\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "odata.error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": ""
                        },
                        "message": {
                          "type": "object",
                          "properties": {
                            "lang": {
                              "type": "string",
                              "example": "en-US"
                            },
                            "value": {
                              "type": "string",
                              "example": "An error has occurred."
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "csharp",
              "code": "\tvar templateGroup = new TemplateGroup()\n\t{\n\t\tAddInContractName = \"XML data provider\",\n\t\tName = \"Group Name\",\n\t\tTemplateLibraryId = Guid.Parse(\"00000000-0000-0000-0000-000000000000\")\n\t};\n\t\t\n\tportalContext.AddToTemplateGroups(templateGroup);\n\tportalContext.SaveChanges();"
            }
          ],
          "samples-languages": [
            "csharp"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```