GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific upload from a project in GitLab 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 project.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, 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 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

  • statusCode - The HTTP status code returned by the API indicating the result of the delete operation.
  • responseBody - The body of the response from the API, typically empty for a successful delete operation.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure that 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 if using a self-hosted GitLab server.
  • Common error messages include 404 Not Found if the project or upload does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion