GitLab API icon

GitLab API

Gitlab

Actions1062

Namespaces → getApiV4NamespacesIdExists

AI-generated

Summary

Check if a GitLab namespace exists by its ID.

Inputs

  • id (required) — Namespace’s path or ID.
  • parent_id — The ID of the parent namespace. If omitted, only top-level namespaces are considered.
  • skipAuthentication — If true, skips using the GitLab API credential.
  • authentication — The credential to use for authentication (GitlabApi).
  • baseUrl — Base URL of the GitLab instance (default https://gitlab.com).

Output shape

JSON object from GitLab API, typically { exists: true } or { exists: false }

When skipAuthentication is false, the node uses the gitlabApi credential defined in the node's credentials.

Examples

Example 1: Check existence of namespace with ID 'my-group'

id: my-group, parent_id: (empty), skipAuthentication: false

Links

Discussion