GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API, specifically supporting the creation of organizations via the POST method to the /api/v4/organizations endpoint. It is useful for automating the management of GitLab organizations, such as creating new organizations programmatically within workflows.

Use Case Examples

  1. Automate the creation of a new GitLab organization when a new project is initiated.
  2. Integrate with other systems to dynamically manage GitLab organizations based on external triggers.

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 requests are sent.
Method The HTTP method used for the API request, defaulting to GET but supporting POST, PUT, DELETE, HEAD, and PATCH.
Parameter Schema Defines the schema for the parameters sent in the request body for the postApiV4Organizations operation.
Request Body Schema Defines the schema for the request body for the postApiV4Organizations operation.
Request Path The API endpoint path for creating organizations, fixed to /api/v4/organizations.

Output

JSON

  • response - The JSON response from the GitLab API after creating an organization.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to create organizations.
  • Verify the baseUrl is correct and accessible from the network where the node runs.
  • Check that the request body conforms to the expected schema for creating organizations to avoid validation errors.

Links

Discussion