Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to manage organizational teams. Specifically, the "Org Delete Team" operation deletes a team within an organization by its unique identifier. This is useful for automating team management tasks such as cleaning up obsolete or inactive teams in a Gitea instance.

Practical examples include:

  • Automatically removing project teams that are no longer active.
  • Integrating team deletion into a larger workflow for organization maintenance.
  • Managing access control by programmatically deleting teams when users leave a project.

Properties

Name Meaning
Id The unique numeric identifier of the team to delete. This property is required to specify which team should be removed.

Output

The node outputs JSON data representing the response from the Gitea API after attempting to delete the specified team. Typically, a successful deletion might return an empty object or confirmation status. 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 standard HTTP headers for JSON content negotiation.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent team ID will result in an error from the API.
    • Missing or incorrect API authentication credentials will cause authorization failures.
    • Network connectivity problems to the Gitea server can prevent the request from completing.
  • Error messages and resolutions:

    • 404 Not Found: The specified team ID does not exist. Verify the team ID before retrying.
    • 401 Unauthorized: Authentication failed. Check that the API key credential is valid and has sufficient permissions.
    • Network errors: Ensure the Gitea server URL is correct and reachable from the n8n environment.

Links and References

Discussion