GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to send a POST request to the GitLab API endpoint `/api/v4/projects/{id}/access_requests` to create an access request for a specific project. It is useful for automating the process of requesting access to a GitLab project by specifying the project ID or URL-encoded path. Typical use cases include managing project access requests programmatically within workflows.

Use Case Examples

  1. Automatically request access to a GitLab project when a new team member joins.
  2. Integrate project access requests into a CI/CD pipeline to streamline permissions management.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for testing or public endpoints.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The 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 specify the project ID or URL-encoded path for which the access request is made.

Output

JSON

  • id - The ID of the created access request.
  • user
    • id - The ID of the user who requested access.
    • username - The username of the user who requested access.
    • name - The full name of the user who requested access.
  • access_level - The access level requested for the project.
  • created_at - Timestamp when the access request was created.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly specified in the path parameters to avoid 404 errors.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to create access requests.
  • If authentication is skipped, ensure the endpoint allows unauthenticated requests, otherwise the request will fail with an authentication error.

Links

Discussion