GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a custom attribute from a specific project in GitLab using the GitLab API. It is useful for managing project metadata by removing custom attributes that are no longer needed or relevant. For example, if a project has a custom attribute used for tracking a specific internal tag and that tag is deprecated, this operation can remove that attribute from the project.

Use Case Examples

  1. Deleting a custom attribute 'releaseVersion' from project with ID 12345 to clean up outdated metadata.
  2. Removing a custom attribute 'priority' from a project to reset project settings.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API calls.
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 DELETE is relevant for this operation.
Path Parameters Parameters to specify the project ID and the key of the custom attribute to delete.

Output

JSON

  • success - Indicates whether the custom attribute was successfully deleted.
  • statusCode - HTTP status code returned by the API after the delete operation.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and custom attribute key are correct and exist in GitLab to avoid 404 errors.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • Permission errors may occur if the API key does not have sufficient rights to delete project custom attributes.

Links

Discussion