GitLab API

GitlabTool

Actions905

Overview

This node operation allows creating a new project for a specific user in GitLab by sending a POST request to the GitLab API endpoint `/api/v4/projects/user/{user_id}`. It is useful for automating project creation under a user's account in GitLab, such as when managing multiple projects programmatically or integrating GitLab project management into workflows.

Use Case Examples

  1. Automatically create a new GitLab project for a user when a new client is onboarded.
  2. Batch create projects for multiple users based on input data.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication used, here it is GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is POST for this operation.
Path Parameters Parameters to be included in the request path, specifically the user ID for whom the project is being created.

Output

JSON

  • id - The unique identifier of the created project.
  • name - The name of the created project.
  • description - Description of the project.
  • web_url - URL to access the project in GitLab.
  • created_at - Timestamp when the project was created.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the user_id path parameter is provided and valid; missing or incorrect user_id will cause request failure.
  • Authentication errors may occur if the GitLab API key is missing, invalid, or lacks sufficient permissions to create projects.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct.
  • API rate limits or network issues may cause request failures; retry or check connectivity.

Links

Discussion