GitLab API

GitlabTool

Actions1000

Overview

This node operation updates a custom attribute for a specific project in GitLab using the GitLab API. It is useful for managing project metadata by modifying custom attributes identified by a key and project ID. For example, it can be used to update project-specific settings or tags stored as custom attributes.

Use Case Examples

  1. Updating a custom attribute 'priority' for project with ID 123 to a new value.
  2. Modifying a custom attribute 'releaseVersion' for a project to reflect the latest release.

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 can be set to PUT for this operation.
Path Parameters Parameters for the API path including the project ID and the key of the custom attribute to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the custom attribute, typically including the updated attribute details.

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.
  • Verify that the API key has sufficient permissions to update project custom attributes to prevent authorization errors.
  • Check the base URL if using a self-hosted GitLab instance to ensure the request is sent to the correct server.

Links

Discussion