GitLab API icon

GitLab API

Gitlab

Actions1062

Integrations → postApiV4ProjectsIdIntegrationsMattermostSlashCommandsTrigger

AI-generated

Summary

Trigger a Mattermost slash command integration for a specific GitLab project by sending a POST request to the GitLab API endpoint /api/v4/projects/{id}/integrations/mattermost_slash_commands/trigger.

Inputs

  • id (required) — The ID or URL-encoded path of the target GitLab project.
  • skipAuthentication — Whether to skip authentication for this request (default is false).
  • baseUrl — The base URL of the GitLab instance (default is https://gitlab.com).
  • method — HTTP method to use for the request (default is POST).
  • postApiV4ProjectsIdIntegrationsMattermostSlashCommandsTrigger (required) — Object containing the request body parameters for triggering the Mattermost slash command integration.

Output shape

a single response object from the GitLab API corresponding to the slash command trigger operation

The output will reflect the JSON response returned by the GitLab API for this trigger endpoint. Authentication is required unless explicitly skipped via the Skip Authentication parameter.

Examples

Example 1: Trigger Mattermost slash command integration for a project

Set the project ID in the path parameters and provide the required request body parameters as per the GitLab API schema for /projects/{id}/integrations/mattermost_slash_commands/trigger. Use the GitLab API credentials unless skipping authentication.

Links

Discussion