GitLab API

GitlabTool

Actions1000

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 when onboarding new users or managing projects programmatically.

Use Case Examples

  1. Create a new project for a user with user ID 1 by providing the necessary project details in the request body.
  2. Automate project creation for multiple users by iterating over user IDs and invoking this operation.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API calls.
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 for whom the project is created.

Output

JSON

  • id - The unique identifier of the created project.
  • name - The name of the created project.
  • description - The description of the created project.
  • web_url - The web URL to access the created 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 provided and valid; missing or invalid user_id will cause request failure.
  • Verify that the authentication credentials are correctly configured unless Skip Authentication is enabled.
  • Check that the baseUrl is correct and accessible; incorrect URLs will cause connection errors.
  • If the API returns permission errors, ensure the authenticated user has rights to create projects for the specified user_id.

Links

Discussion