Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node allows updating a user variable in the context of a User resource. It is useful when you need to modify existing variables associated with a user, such as changing the variable's name or its value. For example, you might use this node to update configuration settings stored as user variables or to correct a variable's value dynamically during workflow execution.

Properties

Name Meaning
Variablename The current name of the variable you want to update (required).
Name The new name for the variable. If left empty, the variable's name will not be changed.
Value The new value to assign to the variable (required).

Output

The node outputs JSON data representing the updated user variable after the operation completes. This typically includes the variable's updated name and value fields reflecting the changes made. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential to authenticate requests to the Gitea API.
  • The node interacts with the Gitea API endpoint configured via credentials, specifically targeting the /api/v1 base URL.
  • Proper configuration of the API URL and authentication token is necessary for successful operation.

Troubleshooting

  • Common issues:
    • Missing required properties (Variablename or Value) will cause the update to fail.
    • Incorrect API credentials or URL misconfiguration can lead to authentication errors.
    • Attempting to rename a variable to a name that already exists may cause conflicts or errors from the API.
  • Error messages:
    • Authentication failures usually indicate invalid or missing API tokens.
    • Validation errors from the API may occur if the variable name or value does not meet expected formats.
  • Resolutions:
    • Ensure all required fields are provided and correctly spelled.
    • Verify API credentials and endpoint URLs.
    • Check for naming conflicts before renaming variables.

Links and References

Discussion