GitLab API icon

GitLab API

Gitlab

Actions880

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 update user preferences or automate project management tasks.

Use Case Examples

  1. Unstarring a project by providing its ID or URL-encoded path to remove it from the user's starred projects list.
  2. Automating cleanup of starred projects in bulk by iterating over project IDs and un-starring them.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public endpoints or testing.
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 that was unstarred

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly provided; otherwise, the API will return an error indicating the project was not found.
  • If authentication is skipped or invalid, the API will return an authentication error; verify the API key credentials are correctly configured.
  • Check the base URL if using a self-hosted GitLab instance to ensure the request is sent to the correct server.

Links

Discussion