Update Imported API Key
PATCH/v2alpha1/admin/importedApiKeys/:key_id
Updates metadata, scopes, or rate limits of an imported key. Supports partial updates via the update_mask query parameter (AIP-134). Omitting update_mask is equivalent to a mask of every populated field in the body. To clear a field to its zero value, list it explicitly in update_mask and leave it unset (or empty) in the body.
PATCH /v2alpha1/admin/importedApiKeys/{key_id}?update_mask=name
{
"imported_api_key": {
"key_id": "{key_id}",
"name": "New name"
}
}
SDK ReferenceTypeScript
adminUpdateImportedApiKey(adminUpdateImportedApiKeyRequest)| Parameters | Type | Required | Description |
|---|---|---|---|
| adminUpdateImportedApiKeyRequest | AdminUpdateImportedApiKeyRequest | required | |
| keyId | string | required | SHA-512/256 hash of credential |
| updateMask | string | optional | The list of fields to update. See AIP-134. |
| Variable | Type |
|---|---|
| data | ImportedApiKey |