Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with an organization management API to create a new variable within a specified organization. It is useful in scenarios where you want to programmatically add configuration or environment variables scoped to an organization, for example, setting deployment parameters, feature flags, or metadata that other parts of your workflow or system can reference.

Practical examples include:

  • Adding a new environment variable to an organization before triggering a deployment.
  • Storing custom metadata values for an organization that influence downstream automation logic.

Properties

Name Meaning
Org The name of the organization where the variable will be created.
Variablename The name/key of the variable to create within the organization.
Value The value assigned to the variable being created.

Output

The node outputs JSON data representing the result of the variable creation operation. This typically includes confirmation details such as the variable's name and value, and possibly metadata returned by the API about the newly created variable.

No binary data output is indicated.

Dependencies

  • Requires an API key credential to authenticate requests against the organization's API endpoint.
  • The base URL for the API is configured via credentials.
  • The node uses standard HTTP headers for JSON content negotiation (Accept: application/json, Content-Type: application/json).

Troubleshooting

  • Common issues:
    • Missing or incorrect organization name may cause the API to reject the request.
    • Providing a variable name that already exists might lead to conflicts or errors.
    • Invalid or missing API authentication token will result in authorization errors.
  • Error messages:
    • Authorization errors indicate problems with the API key or credentials; verify and update them.
    • Validation errors usually point to missing required fields or invalid input formats; ensure all required properties are correctly set.
    • Network or connectivity errors suggest issues reaching the API endpoint; check network settings and base URL configuration.

Links and References

  • Refer to the API documentation of the organization management service for detailed information on variable creation endpoints and payload structure.
  • n8n documentation on creating and using credentials for API authentication.

Discussion