GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to create new projects using the POST method on the /api/v4/projects endpoint. It is useful for automating project creation in GitLab, such as setting up new repositories programmatically as part of CI/CD pipelines or project management workflows.

Use Case Examples

  1. Automatically create a new GitLab project when a new client is onboarded.
  2. Set up multiple GitLab projects in bulk using data from an external source.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method to use for the request, defaulting to POST for creating projects.

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 URL to access the project in GitLab.
  • created_at - The timestamp when the project was created.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has permissions to create projects.
  • Verify the baseUrl is correct and accessible.
  • Check that the request body schema matches the expected structure for creating a project in GitLab.
  • Common error messages include authentication failures, permission denied, and invalid request body. Resolving these typically involves verifying credentials, permissions, and request payload format.

Links

Discussion