GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific upload from a GitLab project using the GitLab API. It is useful for managing project files by removing unwanted or outdated uploads. For example, if a user wants to clean up storage or remove an incorrect file upload from a project, this operation can be used to delete that upload by specifying the project ID and the upload ID.

Use Case Examples

  1. Deleting an upload from a project to free up storage space.
  2. Removing an incorrect or outdated file upload from a GitLab project.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but can be set to DELETE for this operation.
Path Parameters The path parameters required for the API call, specifically the project ID and the upload ID to identify the upload to delete.

Output

JSON

  • success - Indicates whether the upload was successfully deleted.
  • statusCode - The HTTP status code returned by the API.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID and upload ID are correct and exist in the GitLab instance.
  • Verify that the authentication credentials are valid and have sufficient permissions to delete uploads.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the project or upload does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion