Deletes an API Key by ID

Deletes an API Key by ID See Using Global API Keys for more information on permission and scope requirements.

SecuritybearerAuth
Request
path Parameters
userId
required
integer <int64>

User ID of the user to delete API Key for

id
required
integer <int64>

The ID of the API key to delete

query Parameters
o
required
integer <int64>

The target organization

Responses
204

Successful Operation

4XX

Invalid Request

default

Invalid Request

delete/users/{userId}/api_keys/{id}
Request samples
$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
Response samples
application/json
{
  • "errors": [
    • "string"
    ]
}