GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to unstar a project on GitLab by making a POST request to the GitLab API endpoint `/api/v4/projects/{id}/unstar`. It is useful for managing project stars programmatically, such as removing a star from a project to indicate less interest or to clean up starred projects.

Use Case Examples

  1. Unstarring a project by providing its ID or URL-encoded path to the node, which then sends the unstar request to GitLab.
  2. Automating project management workflows where projects are unstarred based on certain conditions or triggers.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path to identify the project to unstar.

Output

JSON

  • id - The ID or URL-encoded path of the project to unstar

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly provided; otherwise, the API request will fail.
  • If authentication is enabled, verify that the GitLab API key credential is valid and has sufficient permissions to unstar projects.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct and accessible.
  • Common error messages may include 404 Not Found if the project does not exist or 401 Unauthorized if authentication fails.

Links

Discussion