GitLab API

GitlabTool

Actions1095

Integrations → postApiV4ProjectsIdServicesMattermostSlashCommandsTrigger

AI-generated

Summary

Send a POST request to trigger the Mattermost slash commands integration for a specified GitLab project.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project to target.
  • skipAuthentication — Optionally skip authentication for this request; defaults to false, meaning authentication is used.
  • method — HTTP method to use for the request; defaults to POST as required by the operation.

Output shape

a single JSON response body containing the result of triggering the Mattermost slash commands integration for the specified project.

The operation sends the POST request to the endpoint /api/v4/projects/{id}/services/mattermost_slash_commands/trigger. Authentication is used by default via the configured GitLab API credential, and the base URL is defined by the credential (default https://gitlab.com). The request requires a body conforming to the postApiV4ProjectsIdServicesMattermostSlashCommandsTrigger schema, which is not detailed here but must be provided by the user.

Examples

Example 1: Trigger the Mattermost slash commands integration for project ID '1234' with authenticated request.

Set the 'id' path parameter to '1234', ensure authentication is enabled, and provide the required request body to execute the trigger.

Links

Discussion