# Validation error even when parameter passed while running data explorer API with Curl

**URL:** https://meta.discourse.org/t/validation-error-even-when-parameter-passed-while-running-data-explorer-api-with-curl/191341
**Category:** Support
**Created:** [May 23, 2021, 6:34am UTC](https://meta.discourse.org/t/validation-error-even-when-parameter-passed-while-running-data-explorer-api-with-curl/191341 "2021-05-23T06:34:47Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [May 24, 2021, 8:07pm UTC](https://meta.discourse.org/t/validation-error-even-when-parameter-passed-while-running-data-explorer-api-with-curl/191341/2 "2021-05-24T20:07:37Z")

</div>

Have a look at [How to run Data Explorer queries with the Discourse API](https://meta.discourse.org/t/how-to-run-data-explorer-queries-with-the-discourse-api/120063) for details about how the `params` parameter needs to be set. Based off the code you have provided, it looks like you are trying to pass the `user_param` param directly instead of including it in a `params` param. The first code example in the topic that I linked to should give you an idea about how to set that parameter.

---

_[View the full topic](https://meta.discourse.org/t/validation-error-even-when-parameter-passed-while-running-data-explorer-api-with-curl/191341)._
