h2oGPTe icon

h2oGPTe

h2oGPTe is an AI-powered search assistant for your internal teams to answer questions gleaned from large volumes of documents, websites and workplace content.

Actions198

Overview

This node allows administrators to update the expiration date of an existing API key. It is useful for managing API key lifecycles by either setting a new expiry interval or removing the expiry altogether. For example, if you want to extend the validity of an API key for 30 more days or make it never expire, this node facilitates that operation.

Properties

Name Meaning
Key ID The unique identifier of the API key to update.
Additional Options Optional settings for the update operation.
└─ Expires In Interval specifying when the API key should expire (e.g., "30 days"). If omitted, expiry is removed.

Output

The output contains the full response from the API after updating the API key expiry. The main data is available in the json field, which typically includes details about the updated API key such as its ID and new expiry information. There is no binary data output.

Dependencies

  • Requires an API key credential configured in n8n to authenticate requests.
  • The node sends a PATCH request to the endpoint /admin/api_keys/expire/{key_id} on the configured base URL.
  • The base URL and authentication credentials must be properly set up in the node's credentials.

Troubleshooting

  • Invalid Key ID: If the provided Key ID does not exist, the API will likely return an error indicating the key was not found. Verify the Key ID is correct.
  • Authentication Errors: Ensure the API key credential used has sufficient permissions to update API keys.
  • Invalid Expiry Format: The "Expires In" value should be a valid time interval string (e.g., "30 days"). Incorrect formats may cause errors.
  • Removing Expiry: To remove the expiry, do not provide the "Expires In" property; including it with an empty or invalid value might cause unexpected behavior.

Links and References

  • Refer to your API provider’s documentation for details on API key management and expiry format.
  • n8n documentation on how to configure API key credentials and use HTTP request nodes.

Discussion