GitLab API icon

GitLab API

Gitlab

Actions1062

Tags → postApiV4ProjectsIdRepositoryTags

AI-generated

Summary

Creates a new tag in a GitLab project repository.

Inputs

  • Project ID (required) — The ID or URL-encoded path of the project (path parameter id).
  • Tag Definition (required) — Request body containing the tag tag_name and the ref (commit SHA or branch name) to tag, as defined by the GitLab API.
  • Skip Authentication — If set, bypasses the configured gitlabApi credential.
  • Authentication — Uses the gitlabApi credential unless skipAuthentication is true.
  • Base URL — Override the GitLab instance URL (defaults to https://gitlab.com).

Output shape

The created tag object returned by GitLab, containing fields such as name, message, target, commit, etc.

On error, the node throws an n8n error with details from the API response.

Examples

Example 1: Tag a repository with a release version

Set Project ID to 123, provide body {tag_name: 'v1.0.0', ref: 'main'}, leave authentication defaults.

Links

Discussion