GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific release asset link in a GitLab project. It is useful for managing release assets by removing outdated or incorrect links associated with a release tag. For example, if a release asset link is no longer valid or needed, this operation can be used to delete it from the GitLab project.

Use Case Examples

  1. Deleting a release asset link by specifying the project ID, release tag name, and the link ID to remove an obsolete asset link from a release.
  2. Automating cleanup of release asset links in CI/CD pipelines to maintain accurate release information.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to GET but can be set to DELETE for this operation.
Path Parameters Parameters required in the request path to identify the project, release tag, and link to delete.

Output

JSON

  • statusCode - The HTTP status code returned by the API after attempting to delete the release asset link.
  • responseBody - The body of the response from the API, typically empty or containing confirmation of deletion.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, tag name, and link ID are correctly specified and URL-encoded if necessary.
  • Verify that the authentication credentials are valid and have sufficient permissions to delete release asset links.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the specified release asset link does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion