GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation updates a specific remote mirror of a GitLab project using the GitLab API. It is useful for managing remote mirrors by modifying their settings or details. For example, a user can update the URL or other properties 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 mirror settings such as enabling or disabling the mirror for a project.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method to use for the request, defaulting to GET but can be set to PUT for this operation.
Path Parameters Parameters required in the request path to identify the project and the remote mirror to update.

Output

JSON

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

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and mirror ID are correctly specified and URL-encoded if necessary to avoid 404 errors.
  • Verify that the authentication credentials are valid and have sufficient permissions to update remote mirrors to prevent authorization errors.
  • Check the request body schema to ensure all required fields are included and correctly formatted to avoid validation errors from the API.

Links

Discussion