GitLab API

GitlabTool

Actions1000

Overview

This node operation updates the Mock CI integration settings for a specific project in GitLab using the GitLab API. It is useful for automating the configuration of CI integrations in GitLab projects, such as enabling or modifying the Mock CI integration via an API call.

Use Case Examples

  1. Automatically update Mock CI integration settings for a project during a CI/CD pipeline setup.
  2. Modify Mock CI integration parameters for multiple projects programmatically.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method to use for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Path Parameters Parameters to be included in the request path, specifically the project ID for which the Mock CI integration is updated.

Output

JSON

  • response - The JSON response from the GitLab API after updating the Mock CI integration.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and accessible with the provided authentication.
  • Verify that the base URL is correct and points to a valid GitLab instance.
  • Check that the HTTP method is set to PUT for updating the integration as required by the operation.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for this endpoint, otherwise authentication errors will occur.

Links

Discussion