Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation allows you to block a user within a specified organization on the Gitea platform. It is useful for administrators or organization owners who want to restrict certain users from accessing or interacting with their organization's repositories and resources. For example, if a user violates community guidelines or poses a security risk, this operation can be used to block them effectively.

Properties

Name Meaning
Org The name of the organization where the user will be blocked.
Username The username of the user to block within the specified organization.
Note An optional note explaining the reason for blocking the user; this is sent as a query parameter.

Output

The output of this operation typically includes JSON data representing the result of the block action. This may contain confirmation details such as the blocked user's information or status messages indicating success or failure. The node does not explicitly handle binary data in this operation.

Dependencies

  • Requires an API key credential for authenticating with the Gitea API.
  • The node uses the Gitea REST API endpoint /api/v1 configured via the base URL from credentials.
  • Proper permissions are needed on the Gitea instance to perform organization user blocks.

Troubleshooting

  • Common issues:

    • Invalid organization name or username may cause the API call to fail.
    • Insufficient permissions or missing API authentication token will result in authorization errors.
    • Network connectivity problems can prevent reaching the Gitea server.
  • Error messages:

    • "Unauthorized" or "Forbidden": Check that the API key has the required scopes and permissions.
    • "Not Found": Verify that the organization and username exist and are spelled correctly.
    • "Bad Request": Ensure that all required parameters (Org and Username) are provided and valid.

Links and References

Discussion