Deletes an API Key by ID

Deletes an API Key by ID

SecuritybearerAuth
Request
path Parameters
userId
required
integer

User ID of the user to delete API Key for

id
required
integer

The ID of the API key to delete

query Parameters
o
required
integer

The target organization

Responses
204

Successful Operation

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

503

Service Unavailable

delete/users/{userId}/api_keys/{id}
Request samples
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = 'https://console.automox.com/api/users/{98765}/api_keys/999999?o=0000' $response = (Invoke-WebRequest -Method Delete -Uri $url -Headers $headers -ContentType "application/json").Content
Response samples
application/json
{
  • "errors": [
    • "Validation Error"
    ]
}