curl -X PATCH 'https://api.resend.com/api-keys/b6d24b8e-af0b-4c3c-be0c-359bbd97381e' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d $'{
"name": "Production"
}'
{
"object": "api_key",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Update API key
Update an existing API key.
PATCH
/
api-keys
/
:api_key_id
curl -X PATCH 'https://api.resend.com/api-keys/b6d24b8e-af0b-4c3c-be0c-359bbd97381e' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d $'{
"name": "Production"
}'
{
"object": "api_key",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Path Parameters
Body Parameters
string
required
The API key name. Maximum 50 characters.
curl -X PATCH 'https://api.resend.com/api-keys/b6d24b8e-af0b-4c3c-be0c-359bbd97381e' \
-H 'Authorization: Bearer re_xxxxxxxxx' \
-H 'Content-Type: application/json' \
-d $'{
"name": "Production"
}'
{
"object": "api_key",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Was this page helpful?
⌘I