GitLab API icon

GitLab API

Gitlab

Actions880

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.
Authentication The authentication method used for the request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance, default is 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 request path including the project ID and the key of the custom attribute to update.

Output

JSON

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

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and custom attribute key are correct and exist in GitLab.
  • Verify that the authentication credentials are valid and have sufficient permissions to update project attributes.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 401 Unauthorized (authentication failure), 404 Not Found (invalid project ID or attribute key), and 400 Bad Request (invalid request body). Resolving these involves correcting credentials, IDs, or request data.

Links

Discussion