GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation updates a deploy key for a specific project in GitLab using the GitLab API. It is useful for managing deploy keys programmatically, such as enabling or disabling keys or updating their properties for a project you own or have access to. For example, you can update the deploy key's title or access permissions for a project identified by its ID and the deploy key's ID.

Use Case Examples

  1. Updating a deploy key's title for a project to improve key management.
  2. Disabling a deploy key for a project to restrict access temporarily.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
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 PUT is used for this operation.
Path Parameters Parameters for the API path including project ID and deploy key ID.

Output

JSON

  • response - The JSON response from the GitLab API after updating the deploy key, containing details of the updated deploy key.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and deploy key ID are correct and accessible by the authenticated user to avoid authorization errors.
  • Verify that the request body contains valid data according to the GitLab API schema for updating deploy keys to prevent validation errors.
  • Check network connectivity and base URL correctness if the API request fails to reach the GitLab server.

Links

Discussion