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

# GetAssembly

# 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": {
    "/Templates(:templateId)/Xpertdoc.Portal.GetAssembly": {
      "get": {
        "summary": "GetAssembly",
        "description": "",
        "operationId": "getassembly-template",
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "schema": {
              "type": "string",
              "default": "00000000-0000-0000-0000-000000000000"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"@odata.context\":\"http://portal.xpertdoc.com/odata4/v6/$metadata#Edm.Binary\",\n  \"value\":\"TVqQAAMAAAAEAAAA//8AALg\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "@odata.context": {
                      "type": "string",
                      "example": "http://portal.xpertdoc.com/odata4/v6/$metadata#Edm.Binary"
                    },
                    "value": {
                      "type": "string",
                      "example": "TVqQAAMAAAAEAAAA//8AALg"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "csharp",
              "code": "var template = portalContext.Templates.Where(t => t.TemplateId == Guid.Parse(\"00000000-0000-0000-0000-000000000000\")).FirstOrDefault();\t\n\nvar response = template.GetAssembly().GetValue();"
            }
          ],
          "samples-languages": [
            "csharp"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```