Update a Customer API Key
Update a customer's API key with a new name, description, or IP rules using the Admin API for improved security and management.
βοΈ Update a Customer API Key
πΉ HTTP Request
πΈ URL Segments
Segment
Type
Required
Description
π Authorization Header
π Fields Available for Update
Field
Type
Required
Description
π» PHP Example
$response = $endpoint->updateApiKey('ab382plq98zr7', '45', [
'name' => 'Updated Key',
'description' => 'Updated description for the key',
'ip_whitelist' => ['101.101.101.101'],
'ip_blacklist' => ['202.202.202.202']
]);
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';π¦ Sample JSON Response
Last updated