GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows creating a new project for a specific user in GitLab by making 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 in CI/CD pipelines or project management workflows.

Use Case Examples

  1. Creating a new project for a user with a given user ID in GitLab.
  2. Automating project setup for new team members by creating projects under their user accounts.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for testing or public endpoints.
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 to be included in the request path, specifically the user_id to identify the user under whom the project will be 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 for authentication

Troubleshooting

  • Ensure the user_id path parameter is correctly provided and is a valid integer.
  • Verify that the authentication credentials are correctly set unless skipping authentication is enabled.
  • Check that the baseUrl is correct and accessible.
  • Common errors include 401 Unauthorized if authentication fails, 404 Not Found if the user_id does not exist, and 400 Bad Request if the request body is malformed.

Links

Discussion