GitLab API

GitlabTool

Actions905

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 process and that process is discontinued, this operation can remove the associated attribute.

Use Case Examples

  1. Deleting a custom attribute 'releaseVersion' from project with ID 12345 to clean up project metadata.
  2. Removing an obsolete custom attribute 'deprecatedFlag' from a project to maintain accurate project information.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API calls.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl 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 used for this operation.
Path Parameters Parameters required in the URL path to identify the project and the custom attribute key to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response
  • responseBody - Response body from the API after attempting to delete the custom attribute, typically empty or confirmation message

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 Not Found errors.
  • Check that the API key has sufficient permissions to delete custom attributes on the project to avoid 403 Forbidden errors.
  • Verify the base URL is correct for the GitLab instance being accessed to prevent connection errors.

Links

Discussion