Create project API with "template_project_id" property is not working
Summary
For create new project using "template_project_id", I am getting the below error:
As per docs I tried using "use_custom_template": true https://docs.gitlab.com/ee/api/projects.html#create-project
But getting the error as below:
, I am trying to use the ID of this template: https://gitlab.com/gitlab-org/project-templates/jsonnet.
Unable to figure out how to use the property "template_project_id", to create a project. The same works when using "template_name"
Steps to reproduce
POST http://gitlOnPremSetUp.com/api/v4/projects with the payload
{
"name": "test_name1",
"template_project_id": 19985677
}
What is the current bug behavior?
API returns an error response.
What is the expected correct behavior?
The project should get created with the template_project_id passed in the payload.
Output of checks
This bug happens on On prem set up of gitlab