Skip to main content

rotate_api_key

Function rotate_api_key 

Source
pub async fn rotate_api_key(
    configuration: &Configuration,
    app_id: &str,
    token_id: &str,
) -> Result<CreateApiKeyResponse, Error<RotateApiKeyError>>
Expand description

Rotate a Rich Authentication Token (App API Key) for a OneSignal app. Rotating a key revokes the current token and generates a new one under the same configuration—ideal when a token is lost or compromised but you don’t want to recreate and reconfigure it from scratch.