Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with a User resource to list blocks associated with users. It is designed to retrieve paginated lists of user blocks, which can be useful in scenarios where you need to manage or analyze user restrictions, suspensions, or other block-related data within an application or service.

Practical examples include:

  • Fetching a list of blocked users for moderation purposes.
  • Auditing user blocks over time by retrieving pages of block records.
  • Integrating user block data into dashboards or reports.

Properties

Name Meaning
Page The page number of results to return (1-based). Used for pagination to specify which page of results to fetch.
Limit The page size of results. Defines how many block entries are returned per page.

Output

The node outputs JSON data containing the list of user blocks retrieved from the API. Each item in the output corresponds to a block record related to a user. The structure typically includes details about the block such as block reason, timestamps, and user identifiers, although exact fields depend on the API response schema.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authentication to the external service providing user block data.
  • The base URL for the API must be configured in the node credentials.
  • The node uses standard HTTP headers for JSON content negotiation.

Troubleshooting

  • Empty results: Ensure that the Page and Limit parameters are set correctly and that there are blocks available for the specified user context.
  • Authentication errors: Verify that the API key credential is valid and has sufficient permissions to access user block data.
  • Pagination issues: If requesting pages beyond the available range, the API may return empty results; adjust the Page parameter accordingly.
  • Network or API errors: Check network connectivity and API endpoint availability.

Links and References

  • Refer to the external API documentation for detailed information on user block data structure and pagination behavior.
  • Consult n8n documentation on setting up API credentials and using pagination in nodes.

Discussion