Deletes an API Key by ID See Using Global API Keys for more information on permission and scope requirements.
Successful Operation
Invalid Request
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" "Content-Type" = "application/json" } $url = "https://console.automox.com/api/users/{userId}/api_keys/{id}?o=0000" $response = (Invoke-WebRequest -Method Delete -Uri $url -Headers $headers).Content
{- "errors": [
- "string"
]
}