- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
revoke - API Key Module Reference
This documentation provides a reference to the revoke
method. This belongs to the API Key Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
revoke(selector, data, sharedContext?): Promise<ApiKeyDTO[]>#
This method revokes API keys based on the filters provided.
Example#
Parameters#
selector
FilterableApiKeyPropsThe filters to specify which API keys should be revoked.
selector
FilterableApiKeyPropsdata
RevokeApiKeyDTOThe details of revoking the API keys.
data
RevokeApiKeyDTOReturns#
Promise
Promise<ApiKeyDTO[]>The revoked API keys.
Promise
Promise<ApiKeyDTO[]>revoke(id, data, sharedContext?): Promise<ApiKeyDTO>#
This method revokes an API key based on the ID provided.
Example#
Parameters#
id
stringThe ID of the API key to revoke.
data
RevokeApiKeyDTOThe details of revoking the API key.
data
RevokeApiKeyDTOReturns#
Promise
Promise<ApiKeyDTO>The revoked API key.
Promise
Promise<ApiKeyDTO>Was this page helpful?