GitLab API

GitlabTool

Actions1000

Overview

This node operation updates the Discord integration settings for a specific GitLab group by sending a PUT request to the GitLab API endpoint `/api/v4/groups/{id}/integrations/discord`. It is useful for automating the management of Discord integrations within GitLab groups, such as configuring notification settings or updating integration parameters programmatically.

Use Case Examples

  1. Automatically update Discord integration settings for a GitLab group when certain project events occur.
  2. Manage multiple GitLab group Discord integrations in bulk through workflow automation.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but for this operation it is PUT.
Path Parameters Parameters to be included in the request path, specifically the group ID to identify which group's Discord integration to update.

Output

JSON

  • statusCode - HTTP status code returned by the API after the update request.
  • responseBody - The JSON response body from the GitLab API containing details of the updated Discord integration.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID provided in the path parameters is valid and the authenticated user has permission to update the group's integrations.
  • If authentication is skipped, the request may fail due to lack of authorization.
  • Verify the base URL is correct for the GitLab instance being accessed.
  • Check that the request body schema matches the expected structure for the Discord integration update as per GitLab API documentation.

Links

Discussion