func (client *Client) UpdateAPIKey(apikey *APIKey) error {
	out := reqAPIKey{APIKey: apikey}
	toPost := struct {
		Name *string `json:"name,omitempty"`
	}{
		apikey.Name,
	}
	return client.doJsonRequest("PUT", fmt.Sprintf("/v1/api_key/%s", *apikey.Key), toPost, &out)
}
func (client *Client) UpdateAPIKey(apikey *APIKey) error {
	out := reqAPIKey{APIKey: apikey}
	toPost := struct {
		Name *string `json:"name,omitempty"`
	}{
		apikey.Name,
	}
	return client.doJsonRequest("PUT", fmt.Sprintf("/v1/api_key/%s", *apikey.Key), toPost, &out)
}
// UpdateAPIKey updates given API key (only Name can be updated), returns an error