---
updatedAt: 2025-06-05T01:07:54.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": {
    "/TemplateExecutionData()": {
      "post": {
        "summary": "Create",
        "description": "",
        "operationId": "create-templateexecutiondata",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "TemplateId": {
                    "type": "string"
                  },
                  "Name": {
                    "type": "string"
                  },
                  "RawContent": {
                    "type": "string"
                  },
                  "Content": {
                    "type": "string"
                  },
                  "DataType": {
                    "type": "string"
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "DataType": "Draft",
                    "Content": "<DynamicObject xmlns=\"http://online.xpertdoc.com/dynamicObject\"></DynamicObject>",
                    "RawContent": "<DynamicObject xmlns=\"http://online.xpertdoc.com/dynamicObject\"></DynamicObject>",
                    "TemplateId": "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#TemplateExecutionData\",\n\t\"DocumentOutputPostActionId\": \"00000000-0000-0000-0000-000000000000\",\n\t\"TemplateLibraryId\": \"00000000-0000-0000-0000-000000000000\",\n\t\"Name\": \"Test\",\n\t\"Description\": null,\n\t\"Metadata\": \"<DocumentOutputPostActionMetadata BatchName='' ExecuteInMemory='false' ExecutionResultBehavior='KeepIfSingle'>  <DocumentOperations/></DocumentOutputPostActionMetadata>\",\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\": \"AAAAAAABjjo=\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "@odata.context": {
                      "type": "string",
                      "example": "http://portal.xpertdoc.com/odata4/v6/$metadata#TemplateExecutionData"
                    },
                    "DocumentOutputPostActionId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000"
                    },
                    "TemplateLibraryId": {
                      "type": "string",
                      "example": "00000000-0000-0000-0000-000000000000"
                    },
                    "Name": {
                      "type": "string",
                      "example": "Test"
                    },
                    "Description": {},
                    "Metadata": {
                      "type": "string",
                      "example": "<DocumentOutputPostActionMetadata BatchName='' ExecuteInMemory='false' ExecutionResultBehavior='KeepIfSingle'>  <DocumentOperations/></DocumentOutputPostActionMetadata>"
                    },
                    "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": "AAAAAAABjjo="
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"odata.error\": {\n        \"code\": \"\",\n        \"message\": {\n            \"lang\": \"en-US\",\n            \"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": "var templateExecutionData = new TemplateExecutionData\n{\n  DataType = TemplateExecutionDataType.Draft,\n  Content = \"<DynamicObject xmlns=\\\"http://online.xpertdoc.com/dynamicObject\\\"></DynamicObject>\",\n  RawContent = \"<DynamicObject xmlns=\\\"http://online.xpertdoc.com/dynamicObject\\\"></DynamicObject>\",\n  TemplateId = Guid.Parse(\"00000000-0000-0000-0000-000000000000\")\n};\n\nportalContext.AddToTemplateExecutionData(templateExecutionData);\nportalContext.SaveChanges();"
            }
          ],
          "samples-languages": [
            "csharp"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```