GitLab API

GitlabTool

Actions1000

Overview

This node operation allows adding a member to a specific GitLab project by making a POST request to the GitLab API endpoint `/api/v4/projects/{id}/members`. It is useful for automating project member management in GitLab, such as adding users to projects programmatically based on project ID and member details.

Use Case Examples

  1. Automatically add a user to a GitLab project when a new project is created.
  2. Manage project team members by adding them through workflow automation.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API calls.
Authentication Select the authentication method, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID (`id`) to which the member will be added.

Output

JSON

  • id - The ID of the added project member.
  • username - The username of the added member.
  • access_level - The access level granted to the member in the project.
  • created_at - Timestamp when the member was added to the project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID (`id`) is correctly provided and exists in GitLab to avoid 404 errors.
  • Verify that the API key used has sufficient permissions to add members to the project, otherwise a 403 Forbidden error may occur.
  • Check the request body schema to ensure all required member details are included to prevent validation errors.

Links

Discussion