# Create Template Creates a Template in the Account scope. Endpoint: POST /v1/templates Version: 1.0 Security: x-api-key ## Header parameters: - `Harness-Account` (string) Identifier field of the account the resource is scoped to. ## Request fields (application/json): - `template_yaml` (string) Yaml for creating new Template - `identifier` (string) Template identifier - `name` (string) Template name - `label` (string) Template version label - `description` (string) Pipeline description - `tags` (object) Template tags - `git_details` (object) Contains parameters related to creating an Entity for Git Experience. - `git_details.branch_name` (string) Name of the branch. - `git_details.file_path` (string) File path of the Entity in the repository. - `git_details.commit_message` (string) Commit message used for the merge commit. - `git_details.base_branch` (string) Name of the default branch (this checks out a new branch titled by branch_name). - `git_details.connector_ref` (string) Identifier of the Harness Connector used for CRUD operations on the Entity. - `git_details.store_type` (string) Specifies whether the Entity is to be stored in Git or not. Enum: "INLINE", "REMOTE" - `git_details.repo_name` (string) Name of the repository. - `is_stable` (boolean) True if given version for template to be set as stable - `comments` (string) Specify comment with respect to changes ## Response 201 fields (application/json): - `account` (string, required) Account identifier - `org` (string) Organization identifier - `project` (string) Project identifier - `identifier` (string, required) Template identifier - `name` (string, required) Template Name - `description` (string) Template description - `tags` (object) Template tags - `yaml` (string, required) Yaml related to template - `version_label` (string) Version label of template - `entity_type` (string) Type of Template Enum: "Step", "Stage", "Pipeline", "CustomDeployment", "MonitoredService", "SecretManager" - `child_type` (string) Defines child template type - `scope` (string) Scope of template Enum: "org", "project", "account", "unknown" - `updated` (integer) Last modification timestamp for Service. - `version` (integer) Version of template - `git_details` (object) Git Experience related details of the Entity. - `git_details.object_id` (string) Entity identifier - `git_details.branch_name` (string) Name of the branch. - `git_details.file_path` (string) File path of the Entity in the repository. - `git_details.repo_name` (string) Name of the repository. - `git_details.commit_id` (string) Latest commit identifier. - `git_details.file_url` (string) File URL of the Entity. - `git_details.repo_url` (string) Repository URL of the Entity. - `store_type` (string) Specifies whether the Entity is to be stored in Git or not (for Git Experience). Enum: "INLINE", "REMOTE" - `connector_ref` (string) Identifier of the Harness Connector used for CRUD operations on the Entity (for Git Experience). - `yaml_version` (string) Specifies the yaml version of the template - `stable_template` (boolean) True if this version is stable version of Template