GitLab API

GitlabTool

Actions1000

Overview

This node operation performs a PUT request to transfer a project in GitLab to a new namespace or owner. It is useful for automating project management tasks such as changing project ownership or reorganizing projects within GitLab. For example, a user can transfer a project by specifying the project ID and the new namespace via this node.

Use Case Examples

  1. Transferring a GitLab project to a different namespace programmatically.
  2. Automating project ownership changes in GitLab through workflows.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used for the request, hidden unless Skip Authentication is false. Defaults to GitLab API key authentication.
baseUrl The base URL of the GitLab instance. Defaults to https://gitlab.com.
Method The HTTP method to use for the request. Defaults to GET but for this operation it should be PUT.
Path Parameters The path parameters for the request, specifically the project ID or URL-encoded path to identify the project to transfer.

Output

JSON

  • id - The ID of the transferred project.
  • name - The name of the transferred project.
  • path - The path of the transferred project.
  • namespace - The new namespace of the transferred project.
  • owner - The new owner information of the transferred project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible.
  • Verify that the API key used has sufficient permissions to transfer projects.
  • Check that the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • Common error messages include 404 Not Found if the project ID is invalid, and 403 Forbidden if the API key lacks permissions.

Links

Discussion