GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to create a new project for a specified user by sending a POST request to the endpoint `/api/v4/projects/user/{user_id}`. It is useful for automating project creation in GitLab for a given user, such as in CI/CD pipelines or user management workflows.

Use Case Examples

  1. Creating a new project for a user in GitLab by specifying the user ID and project details in the request body.
  2. Automating project setup for new team members by integrating this node in onboarding workflows.

Properties

Name Meaning
Skip Authentication Option to bypass authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to POST.
Path Parameters Parameters to be included in the request path, specifically the user_id to identify the user for whom the project is 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.
  • Verify that the authentication credentials are correctly set unless Skip Authentication is enabled.
  • Check that the request body contains all required fields as per the GitLab API schema for project creation.
  • Common error messages include 401 Unauthorized (authentication issues), 404 Not Found (invalid user_id), and 400 Bad Request (invalid request body). Resolving these involves verifying credentials, user ID, and request payload respectively.

Links

Discussion