Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation deletes a specific key associated with the current user in the system. It is useful when you want to revoke or remove an existing key, such as an API key or SSH key, that the user has previously created or used. For example, if a user’s key is compromised or no longer needed, this operation allows for its removal to maintain security.

Properties

Name Meaning
Id The unique identifier of the key to delete

Output

The output will typically contain JSON data confirming the deletion of the specified key. This may include status information or details about the deleted key. There is no indication that binary data is returned by this operation.

Dependencies

  • Requires an API authentication token or API key credential to authorize the request.
  • Depends on the base URL of the API endpoint configured in the node credentials.
  • Uses standard HTTP headers for JSON content type and acceptance.

Troubleshooting

  • Common issues:
    • Providing an invalid or non-existent key ID will likely result in an error indicating the key could not be found.
    • Missing or incorrect API credentials will cause authentication failures.
  • Error messages:
    • "Key not found" or similar indicates the provided key ID does not exist or is not accessible.
    • Authentication errors suggest checking the API key or token configuration.
  • Resolution:
    • Verify the key ID is correct and belongs to the current user.
    • Ensure the API credentials are properly set up and have sufficient permissions.

Links and References

  • Refer to the API documentation of the service managing user keys for detailed information on key deletion endpoints.
  • Consult n8n documentation on setting up API credentials and handling node errors.

Discussion