GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to add a project to a specific group in GitLab by making a POST request to the GitLab API endpoint `/api/v4/groups/{id}/projects/{project_id}`. It is useful for managing group-project associations programmatically within GitLab, such as automating project organization or integration workflows.

Use Case Examples

  1. Adding a project to a group in GitLab to automate project management.
  2. Integrating GitLab group and project management into a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API access.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters required in the URL path to specify the group ID and project ID to associate.

Output

JSON

  • response - The JSON response from the GitLab API after adding the project to the group, typically including details of the association or confirmation.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and project ID are correct and exist in GitLab to avoid 404 errors.
  • Check that the API key has sufficient permissions to add projects to groups to avoid authorization errors.
  • Verify the base URL is correct if using a self-hosted GitLab instance to avoid connection errors.

Links

Discussion