GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows sending a POST request to the GitLab API endpoint /api/v4/slack/trigger. It is designed to trigger Slack-related actions within GitLab via the API. This can be useful for automating Slack notifications or integrations triggered by GitLab events.

Use Case Examples

  1. Trigger a Slack notification in GitLab when a specific event occurs.
  2. Automate Slack message sending from GitLab using the API trigger endpoint.

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 for the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to POST for this operation.
Parameter Schema Schema defining the parameters for the POST request body, required for this operation.
Request Body Schema Schema defining the structure of the request body, if applicable.
Request Path The API path for the Slack trigger endpoint, fixed to /api/v4/slack/trigger.

Output

JSON

  • response - The JSON response returned from the GitLab Slack trigger API endpoint.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the GitLab API authentication credential is correctly configured and valid.
  • Verify the baseUrl is correct and accessible.
  • Check that the request body matches the required schema for the Slack trigger endpoint.
  • Common errors include authentication failures, invalid request body format, or incorrect API endpoint path.

Links

Discussion