Update API keys

PATCH https://api.sendgrid.com/v3/api_keys/:api_key_id

This endpoint allows you to update the name of an existing API Key.

A JSON request body with a name property is required.

The API Keys feature allows customers to be able to generate an API Key credential which can be used for authentication with the SendGrid v3 Web API or the Mail API Endpoint.

URI Parameters

URI ParameterTypeRequired?Description
apikeyidstringrequiredThe ID of the API Key you are updating.

When updating a key to include user or subuser scopes, use basic authenitcation.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
Content-Typestring