GitLab API

GitlabTool

Actions1000

Overview

This node operation updates a submodule in a GitLab project's repository using the GitLab API. It is useful for managing and modifying submodules within a project's repository, such as changing the submodule's URL or configuration. For example, a user can update the submodule path or details in a specific project repository on GitLab.

Use Case Examples

  1. Updating a submodule URL in a GitLab project repository.
  2. Modifying submodule configuration for a project repository in GitLab.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to GET but can be set to PUT for this operation.
Path Parameters Parameters for the request path including the project ID or URL-encoded path and the URL-encoded full path to the submodule.

Output

JSON

  • response - The response from the GitLab API after updating the submodule.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and submodule path are correctly URL-encoded to avoid request errors.
  • Verify that the authentication credentials are valid and have sufficient permissions to update the submodule.
  • Check that the HTTP method is set to PUT for this update operation.
  • Common error messages may include 401 Unauthorized (invalid credentials), 404 Not Found (incorrect project ID or submodule path), and 400 Bad Request (invalid request body).

Links

Discussion