GitLab API

GitlabTool

Actions905

Overview

This node operation performs an authorized POST request to the GitLab API endpoint `/api/v4/projects/import-relation/authorize`. It is used to authorize project import relations in GitLab, which is useful in scenarios where you need to manage or automate project import permissions programmatically within GitLab projects.

Use Case Examples

  1. Automating project import authorization in GitLab CI/CD pipelines.
  2. Integrating GitLab project import authorization into a custom DevOps workflow.

Properties

Name Meaning
Skip Authentication If set to true, the node skips using authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the request is sent, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to POST for this operation.
Parameter Schema Schema defining the parameters for the request, used internally and hidden from the user.
Request Body Schema Schema defining the structure of the request body, used internally and hidden from the user.
Request Path The API endpoint path for the request, fixed to `/api/v4/projects/import-relation/authorize` and hidden from the user.

Output

JSON

  • response - The JSON response returned from the GitLab API after authorizing the project import relation.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is valid and has sufficient permissions to authorize project import relations.
  • Verify the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab server.
  • Check that the request body schema matches the expected format required by the GitLab API for this endpoint to avoid validation errors.

Links

Discussion