GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation updates a remote mirror for a specific project in GitLab using the GitLab API. It is useful for managing remote mirrors of GitLab projects, such as changing mirror settings or updating mirror details. For example, a user can update the URL or authentication settings of a remote mirror associated with a project.

Use Case Examples

  1. Updating the URL of a remote mirror for a project to point to a new repository location.
  2. Changing the authentication method or credentials used by a remote mirror for synchronization.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, here it is PUT for updating the remote mirror.
Path Parameters Parameters in the request path identifying the project and the remote mirror to update.

Output

JSON

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

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and mirror ID are correct and exist in GitLab to avoid 404 errors.
  • Verify that the API authentication token has sufficient permissions to update remote mirrors.
  • Check the request body schema matches the expected structure for updating remote mirrors to avoid validation errors.

Links

Discussion