GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation updates a specific namespace in GitLab by sending a PUT request to the GitLab API endpoint `/api/v4/namespaces/{id}`. It is useful for modifying namespace details such as name, path, or other attributes identified by the namespace ID. Typical use cases include automating namespace management or integrating namespace updates into workflows.

Use Case Examples

  1. Updating the name or path of a GitLab namespace by specifying its ID and new details in the request body.
  2. Automating namespace configuration changes in GitLab as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request. If true, no authentication is used.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication. Hidden if Skip Authentication is true.
baseUrl The base URL for the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but for this operation it is PUT.
Path Parameters Parameters to be included in the request path, specifically the 'id' of the namespace to update.

Output

JSON

  • id - The unique identifier of the updated namespace.
  • name - The updated name of the namespace.
  • path - The updated path of the namespace.
  • description - The updated description of the namespace.
  • visibility - The visibility level of the namespace (e.g., private, internal, public).
  • created_at - Timestamp when the namespace was created.
  • updated_at - Timestamp when the namespace was last updated.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the 'id' path parameter is correctly set to the namespace ID to avoid 404 Not Found errors.
  • Verify that the authentication token has sufficient permissions to update namespaces to prevent authorization errors.
  • Check the request body schema matches the expected structure for updating namespaces to avoid validation errors.

Links

Discussion