---
id: log-template-create
title: "Create template"
description: "Create a new template."
sidebar_label: "Create template"
hide_title: true
hide_table_of_contents: true
api: eJztWFtv2zYU/ivEedoAxXZuL3pLsw7LMKBB6m4FnMA4Jo9lthKpklQS19B/Hw4p2/KlaYGhG1DsRZDIw3P9PvJQK/AkG6fDEvLJCmaEjtxVExaQTx7ahwwCFh7yCfxhCxGoqksMBA8ZPJ+Ypiz5c25dBfkKpK0qNGpqsCLIYVjaYrhZ0WagyEun66CtgRyuHWEggcLQ00bxADKwNTlkoRsFOZS2mK5ncxnXQAaOPjXkwyurlmyZP7UjBXlwDWUgrQlkAk9hXZdaRn3DD54tr8DLBVXIb2FZs6t29oFkgAxqx9aDJs+z1hVo9Oe4eKoVD+3GMF6QuPlF2LkICxJ9cQ6kU65NoIIcZEDPWNUlQX56dn7RZoBS2saEb1DdSb6s9ez84rLNIKV/E5sPTpsC9tPP+llybWFbgTYDiTXOdKnDcioxUGHd8lDjrlzt7KNW5I7LbevxpbkpGWkVjx0TWns3fUTnjxUOldIcGZa3OyV8ucBp9og9RXNsyuiwNfRmHrmxL7Xar0X7sI/yg0Uciw5crU1Mf6Ibb1hyTCAyRVtzl0DPQi1TwNfW+BTI2ej0CIS69SLRRgnfSEnez5uyXDKUvh9NXob+MSx+iUYHNHkZ/y+r3tDof5r8eDS56wjR8ePi/ftDSlyXmkwQ5Jx1YsMgoRoSwQptHrHUSmhTN0FYJyrtvTaFqNFhRYGc/0e02R5TE/ABQ+OvreLjLPoDGVTkPRbxeN2tQE/6GAV2g/xtPL4VaYWQVpFwVDvyZALHwij2NUk911LIfj5+okExyMTFaMSPU36c8+Pi50GfZhejUcSj+gb6XIkK5UIbOnGECmcldbaiX2GBQXTM0Z/JJ9/IPZITc9Rl42jHMsxQTd16F1yn7RucmDlN80wsmgrN1pOe1JreyTlWt87GPbxCJbqt9x544J3BJiyiy+oedpPTl2YX1xX9upMbZgpFAXXpBc5sE7Zu7drhjalLhXhCLyosuQ8jJWJ2TUBtSG0g3Udw2yaGXB5jyNuU/n2GaKMizk0h0AjtfUPCmujc1e2N8FrRD0YN309EB4ZLpsbl6Iwf57uFv/zvWMHBOoPlNAlNU8r+NX7cdOZFB53XLJOYwiNaknhn8BF1yVoPCHN0+XelzpURjaHnmiQ3RSkkK2XjHKmBuC0JPYnglgIL1Ebw2eLWrOGsPgcyXlvj43H3kZaQ79+GMnjEsqGv34r4hlVRWFi+69TWx8MX+fYFQyaTs6zU0HZJBqnMyXrjSshhEULt8+EQaz3o+zGQtjpI162zqpGxqkkTsBPrW+BbpmhiVv8uuKkBm2IfohhvyVEIsu7lV+sqDJDD73+N4zHO1L/b3tZer6twpG1MrWG/20sdXZe5TfWPtl1Hp7fdVm96vUUdDPV6q+3cfkvFMWkztzElXQdynQolYqW49uR8yvXpYDQYMZi5tBXGTbALp7v/9uq61xJtHf3iVbmrSaDnMKxL1IZNRUisOhRNoI+iXjy8kS4Yb/kEVqsZenrnyrbl4U8NcUYnD4xip5m18WdABgvCmM0N7K+TjydjdmQD+sO9n7vAtOJKSqrDi7J9Sty+eTtmcHUX/Srur+Dwic8MfIIc4h+DkOi4SmMrKNEUTdw8IOnksuEukveQ2+9d0Sx7Hq5WSWJsP5JpW8i6UAJ/czfbtn8DHccG+g==
sidebar_class_name: "post api-method"
info_path: docs/api/control-plane
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Create template"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/controlplane/template"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Create a new template.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={undefined}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"organization_id":{"description":"The ID of the organization.","type":"integer","example":1234},"account_id":{"description":"The ID of the account.","type":"integer","example":2345},"name":{"type":"string","description":"The name of the template."},"capability_category":{"type":"string"},"capability_provider":{"type":"string"},"content":{"type":"string"},"content_encoding":{"type":"string"},"template_vars":{"type":"object","additionalProperties":{"type":"object","properties":{"type":{"type":"string"},"default":{"oneOf":[{"type":"string"},{"type":"integer"}]},"description":{"type":"string"}},"title":"templateVarTemplate"}}},"title":"templateCreationRequest"}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"201":{"description":"Template created successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"organization_id":{"type":"integer","example":1234,"description":"The ID of the organization."},"account_id":{"type":"integer","example":2345,"description":"The ID of the account."},"name":{"type":"string","description":"The name of the template."},"capability_category":{"type":"string"},"capability_provider":{"type":"string"},"content":{"type":"string"},"content_encoding":{"type":"string"},"template_vars":{"type":"object","additionalProperties":{"type":"object","properties":{"type":{"type":"string"},"default":{"oneOf":[{"type":"string"},{"type":"integer"}]},"description":{"type":"string"}},"title":"templateVarTemplate"}}},"title":"templateResponse"}}}},"4XX":{"description":"Client error responses due to invalid input or missing parameters.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific client error (e.g., 400, 401, 403, 404).","example":400},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"bad_request"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Bad Request\", \"Unauthorized\").","example":"Bad Request"},"message":{"type":"string","description":"Additional details about the error.","example":"The request was malformed or contained invalid parameters."}}}}}},"5XX":{"description":"Server error responses indicating an issue on the API side.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific server error (e.g., 500, 502, 503).","example":500},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"internal_server_error"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Internal Server Error\", \"Service Unavailable\").","example":"Internal Server Error"},"message":{"type":"string","description":"Additional details about the error.","example":"An unexpected error occurred. Please try again later."}}}}}}}}
>
  
</StatusCodes>


      