GitLab API icon

GitLab API

Gitlab

Actions917

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 attribute is obsolete, this operation can remove it to keep the project data clean.

Use Case Examples

  1. Deleting a custom attribute 'release_version' from project with ID 12345 to update project metadata.
  2. Removing a deprecated custom attribute 'internal_code' from a project to maintain accurate project information.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is used for this operation.
Path Parameters Parameters for the API path including 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.
  • Check that the API key has sufficient permissions to delete project custom attributes.
  • Verify the base URL is correct for the GitLab instance being accessed.
  • Common error: 404 Not Found - The project ID or custom attribute key does not exist.
  • Common error: 401 Unauthorized - Authentication failed or API key is invalid.

Links

Discussion