template_project_id is unknown or invalid when trying to create project from template via API
<!--- Please read this! Before opening a new issue, make sure to search for keywords in the issues filtered by the "regression" or "bug" label: - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=regression - https://gitlab.com/gitlab-org/gitlab/issues?label_name%5B%5D=bug and verify the issue you're about to submit isn't a duplicate. ---> ### Summary <!-- Summarize the bug encountered concisely. --> When using the API and trying to create a new project from a template, an error is thrown suggesting the template project does not exist when actually it does. ### Steps to reproduce <!-- Describe how one can reproduce the issue - this is very important. Please use an ordered list. --> ``` curl --request POST \ --url 'https://gitlab.com/api/v4/projects/?name=test-project-api&namespace_id=10226105&use_custom_template=true&group_with_project_templates_id=10226098&template_project_id=22702533' \ --header 'Authorization: Bearer TOKEN' ``` ### Example Project <!-- If possible, please create an example project here on GitLab.com that exhibits the problematic behavior, and link to it here in the bug report. If you are using an older version of GitLab, this will also determine whether the bug is fixed in a more recent version. --> https://gitlab.com/181657 ### What is the current *bug* behavior? <!-- Describe what actually happens. --> An error is thrown that the template project is unknown or invalid. ### What is the expected *correct* behavior? <!-- Describe what you should see instead. --> The project should be created based off of the template project. ### Relevant logs and/or screenshots <!-- Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise. --> ### Output of checks <!-- If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com --> This bug happens on GitLab.com: `13.7.0-pre 7127ddad523` ### Workaround See https://gitlab.com/gitlab-org/gitlab/-/issues/290003#note_1366916702
issue