Sets the API key used for API key based authentication.
If OAuth configuration is present this value will be ignored.