GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node interacts with the GitLab API to create a new topic by sending a POST request to the /api/v4/topics endpoint. It is useful for automating the management of topics within GitLab projects, such as categorizing or tagging projects programmatically.

Use Case Examples

  1. Automatically create new topics in GitLab based on project metadata.
  2. Integrate topic creation into CI/CD pipelines to maintain consistent project categorization.

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 API request is sent.
Method The HTTP method used for the request, defaulting to POST for creating a topic.
Parameter Schema Defines the schema for the parameters sent in the request body, specific to creating a topic.
Request Body Schema Defines the schema for the request body content when creating a topic.
Request Path The API endpoint path for creating a topic, fixed to /api/v4/topics.

Output

JSON

  • id - The unique identifier of the created topic.
  • name - The name of the created topic.
  • description - The description of the created topic.
  • created_at - Timestamp when the topic was created.
  • updated_at - Timestamp when the topic was last updated.

Dependencies

  • GitLab API credentials

Troubleshooting

  • Ensure the GitLab API credentials are correctly configured and have the necessary permissions to create topics.
  • Verify the baseUrl is correct and accessible from the environment where the node runs.
  • Check that the request body conforms to the expected schema for creating a topic to avoid validation errors.

Links

Discussion