Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with an organization management API to retrieve the value of a specific variable associated with a given organization. It is useful in scenarios where you need to programmatically access configuration or metadata variables stored at the organizational level, such as environment settings, feature flags, or custom attributes.

For example, if your workflow needs to adjust behavior based on an organization's specific setting, this node can fetch that setting dynamically by specifying the organization name and the variable name.

Properties

Name Meaning
Org The name of the organization to query.
Variablename The name of the variable to retrieve.

Output

The node outputs JSON data containing the value of the requested organization variable. The exact structure depends on the API response but typically includes the variable's name and its corresponding value.

If the node supports binary data output (not evident from the provided code), it would represent any non-JSON data related to the variable, but here only JSON output is expected.

Dependencies

  • Requires an API key credential for authenticating requests to the organization management API.
  • The base URL for the API is configured via credentials.
  • Uses an OpenAPI-based client internally to perform the request.

Troubleshooting

  • Missing or incorrect organization name: Ensure the "Org" property matches exactly the target organization's identifier.
  • Variable not found: If the specified variable name does not exist for the organization, the node may return an error or empty result.
  • Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
  • Network issues: Check connectivity to the API endpoint configured in credentials.

Links and References

  • Refer to the organization management API documentation for details on available variables and their meanings.
  • Consult n8n documentation on how to configure API credentials and use OpenAPI nodes.

Discussion