GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows making a POST request to the GitLab API endpoint `/api/v4/jobs/request`. It is designed to send job requests to GitLab, which can be useful for triggering or managing CI/CD jobs programmatically within an automation workflow. Typical use cases include automating job triggers, managing job queues, or integrating GitLab job requests into larger DevOps pipelines.

Use Case Examples

  1. Trigger a GitLab CI/CD job by sending a job request payload to the `/api/v4/jobs/request` endpoint.
  2. Automate job management by programmatically posting job requests to GitLab from an n8n workflow.

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 to which the request is sent, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to POST for this operation.

Output

JSON

  • response - The JSON response returned from the GitLab API after posting the job request.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to post job requests.
  • Verify the base URL is correct and accessible, especially if using a self-hosted GitLab instance.
  • Check the request body schema matches the expected format for the `/api/v4/jobs/request` endpoint to avoid validation errors.

Links

Discussion