GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdTemplatesType

AI-generated

Summary

Retrieve a list of templates of a specified type for a given GitLab project by its ID or URL-encoded path.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to get templates for.
  • type (required) — The type of template to retrieve; options include dockerfiles, gitignores, gitlab_ci_ymls, licenses, issues, or merge_requests.
  • page — Page number for paginated results; defaults to 1.
  • per_page — Number of items per page for pagination; defaults to 20.
  • Skip Authentication — Optionally skip authentication; defaults to false.
  • baseUrl — Base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

a list of template objects corresponding to the specified project and template type

Supports pagination through optional page and per_page query parameters. Returns data from the GitLab API endpoint /api/v4/projects/{id}/templates/{type}.

Links

Discussion