GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to publish a project catalog entry by making a POST request to the endpoint `/api/v4/projects/{id}/catalog/publish`. It is useful for automating the process of publishing project catalogs in GitLab, which can be beneficial in CI/CD pipelines or project management workflows where project metadata needs to be programmatically updated or published.

Use Case Examples

  1. Automatically publish a project catalog after a successful build in a CI/CD pipeline.
  2. Update and publish project metadata in GitLab as part of a project management automation.

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 key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, default is POST for this operation.
Path Parameters Parameters included in the request path, specifically the project ID or URL-encoded path required to identify the project to publish.

Output

JSON

  • response - The JSON response from the GitLab API after publishing the project catalog, typically containing status or confirmation details.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to publish project catalogs.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the API endpoint is reachable.
  • Common error messages may include authentication failures, permission denied, or invalid project ID errors. Resolving these involves verifying credentials, permissions, and input parameters.

Links

Discussion