Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation deletes a specific organization variable within a Gitea instance. It is useful when you want to remove configuration or environment variables that are no longer needed for an organization in your Gitea setup. For example, if an organization had a variable controlling deployment settings and that variable is deprecated, this operation can cleanly remove it.

Properties

Name Meaning
Org The name of the organization from which the variable will be deleted.
Variablename The name of the variable to delete from the specified organization.

Output

The output JSON typically contains the response from the Gitea API after attempting to delete the organization variable. This may include status information indicating success or failure of the deletion. No binary data output is expected.

Dependencies

  • Requires an API key credential for authenticating with the Gitea API.
  • The node expects the base URL of the Gitea instance to be configured in the credentials.
  • The node uses the Gitea REST API endpoint /api/v1 to perform operations.

Troubleshooting

  • Common issues:

    • Invalid organization name or variable name will cause the API to return an error.
    • Insufficient permissions or invalid API credentials will result in authentication errors.
    • Network connectivity issues to the Gitea server can cause request failures.
  • Error messages:

    • 404 Not Found: The specified organization or variable does not exist. Verify the names.
    • 401 Unauthorized: Authentication failed. Check the API key credential.
    • 400 Bad Request: The request parameters might be malformed. Ensure all required fields are correctly set.

Links and References

Discussion