GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows updating the Drone CI service integration settings for a specific GitLab project by sending a PUT request to the GitLab API endpoint `/api/v4/projects/{id}/services/drone-ci`. It is useful for automating the configuration of Drone CI integration within GitLab projects, enabling continuous integration workflows to be managed programmatically.

Use Case Examples

  1. Automatically update Drone CI integration settings for a project when project details change.
  2. Enable or disable Drone CI integration for multiple projects in bulk via workflow automation.

Properties

Name Meaning
Skip Authentication Option to skip API authentication for the request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but PUT is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID to identify which project's Drone CI service to update.

Output

JSON

  • id - The ID of the GitLab project for which the Drone CI service integration was updated.
  • service_status - Status or response details of the Drone CI service update operation.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in path parameters is valid and accessible with the authenticated user.
  • Verify that the API key has sufficient permissions to update project service integrations.
  • Check the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • Common errors include 401 Unauthorized (invalid or missing API key), 404 Not Found (invalid project ID), and 400 Bad Request (invalid request body).
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for this endpoint, which is uncommon.

Links

Discussion