GitLab API

GitlabTool

Actions905

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. A user wants to unstar a project they previously starred on GitLab by providing the project ID or URL-encoded path.
  2. Automating the process of un-starring multiple projects based on certain criteria in a workflow.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public endpoints or testing.
Authentication Type of authentication used, here it is GitLab API authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is POST 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 that was unstarred
  • statusCode - HTTP status code returned by the API indicating success or failure of the unstar operation
  • responseBody - The response body from the GitLab API after attempting to unstar the project, typically confirming the action

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct and accessible with the provided credentials.
  • Check that the GitLab API credentials are valid and have sufficient permissions to unstar projects.
  • If skipping authentication, verify that the endpoint supports unauthenticated requests (usually it does not).
  • Common error messages include 404 Not Found if the project does not exist or 401 Unauthorized if authentication fails.

Links

Discussion