GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific integration service from a GitLab project using the GitLab API. It is useful for managing project integrations by removing unwanted or obsolete services such as Slack, Jira, or Jenkins integrations. For example, a user can delete the Slack integration from a project by specifying the project ID and the service slug 'slack'.

Use Case Examples

  1. Deleting the Slack integration from a GitLab project by providing the project ID and the slug 'slack'.
  2. Removing the Jira integration from a project to stop issue tracking synchronization.

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 authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but can be set to DELETE for this operation.
Slug The name of the integration service to delete, e.g., 'slack', 'jira', 'jenkins'.
Id The ID of the GitLab project from which the integration service will be deleted.

Output

JSON

  • statusCode - The HTTP status code returned by the API after attempting to delete the integration.
  • responseBody - The body of the response from the API, typically empty or containing confirmation of deletion.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and service slug are correct and exist in the GitLab instance.
  • Verify that the authentication credentials have sufficient permissions to delete project integrations.
  • Common error messages include 404 Not Found if the project or service does not exist, and 403 Forbidden if the user lacks permissions.

Links

Discussion