# Return hosting plan extension templates This function retrieves a hosting plan's package extension templates. When you call this function, the system checks the hosting plan's value. The function returns the contents of the file for each package extension in the list, where name represents the package extension's name. For more information, read our Guide to Package Extensions. This function returns only metadata if the hosting plan does not use package extensions, or if the extensions' template files are empty. Endpoint: GET /_getpkgextensionform Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `pkg` (string, required) The hosting plan's name. Example: "package1" ## Response 200 fields (application/json): - `data` (object) - `data.html` (string) The HTML and Template Toolkit soure code for the hosting plan's extensions' templates. Example: "

Dog Settings

Dog Species
Tail Length


" - `metadata` (object) - `metadata.command` (string) The method name called. Example: "_getpkgextensionform" - `metadata.reason` (string) The reason the API function failed when the field is 0. This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * - Success * - Failed: Check the reason field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1