Run scenario using REST API
![Srini_E](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar1.png)
Hi,
I'm trying to run a scenario using rest API, I'm getting an error - "Unknown API key". could anyone please help?
{"errorType":"com.dataiku.dip.exceptions.NotAuthenticatedException","message":"Unknown API Key","detailedMessage":"Unknown API Key","detailedMessageHTML":"\u003cspan\u003e\u003cspan class\u003d\"err-msg\"\u003eUnknown API Key\u003c/span\u003e\u003c/span\u003e","stackTrace":[]}
Best Answer
-
Hi @Srini_E
,Please make sure that you're passing the API key as the username. As documented here, the username is the API key secret, and the password should remain blank.
If this doesn't solve your issue, please show me how you're connecting to the REST API. Don't forget to censor the API key when you post it.
Additionally, you may want to consider using the Python API instead of using the REST API directly because it's easier to use. See Scenarios for how to run scenarios, and see Python APIs for general information on how to use it.
Thanks,
Zach
Answers
-
@ZachM
, It worked like a charm. You are awesome Zach!!. Thanks a lot!!