GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation updates a specific badge in a GitLab project using the GitLab API. It is useful for managing project badges programmatically, such as changing badge details or updating badge configurations. For example, a user can update the badge's link or image URL for a project badge identified by its ID.

Use Case Examples

  1. Updating a badge's link URL in a GitLab project.
  2. Changing the image URL of a project badge via API.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters for the API path, including project ID and badge ID.

Output

JSON

  • id - The ID of the updated badge.
  • link_url - The URL the badge links to.
  • image_url - The URL of the badge image.
  • name - The name of the badge.
  • project_id - The ID of the project the badge belongs to.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and badge ID are correct and accessible by the authenticated user.
  • Verify that the authentication token has the necessary permissions to update badges.
  • Check the base URL if using a self-hosted GitLab instance instead of gitlab.com.
  • Common error messages include 401 Unauthorized (authentication issues), 404 Not Found (invalid project or badge ID), and 400 Bad Request (invalid request body).

Links

Discussion