Forum Discussion

mhundley's avatar
mhundley
New Member
4 months ago
Solved

Updating API Key

One of my data sources updated the API key and I need to update in the credentials in PBI web, but don't see where to update this under settings. I click on Data Source Credentials then Edit Credenti...
  • SamInogic's avatar
    SamInogic
    4 months ago

    Hi,

     

    That error means Power BI is expecting both a key and a key name, not just the value.

     

    In Power BI Service, when you choose Web API, it needs:

    • Key → your API key
    • Key name → the parameter/header name the API expects

     

    For example:

    • If your API uses ?api_key=XXXX → key name = api_key
    • If it uses ?key=XXXX → key name = key

     

    What to do:

    1. Go back to Edit Credentials
    2. Select Web API
    3. Enter:
      • Key = your API key
      • Key name = the parameter name used by your API

     

    Once both are filled, the error should go away.

     

    Hope this helps.

     

    Thanks!