# Setting 'HTTP Method' for a provisioned influx data type

**URL:** <https://community.grafana.com/t/setting-http-method-for-a-provisioned-influx-data-type/34891>\
**Category:** Configuration\
**Created:** [August 10, 2020, 4:43pm UTC](https://community.grafana.com/t/setting-http-method-for-a-provisioned-influx-data-type/34891 "2020-08-10T16:43:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinrw](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@martinrw](https://community.grafana.com/u/martinrw)\
**Post date:** [August 10, 2020, 4:43pm UTC](https://community.grafana.com/t/setting-http-method-for-a-provisioned-influx-data-type/34891/1 "2020-08-10T16:43:15Z")

</div>

I have an influx data source set up using provisioning in /etc/grafana/provisioning/datasources/.

I can see in the grafana web interface that there is an option to set the “http Method” to either Post or Get, it seems to default as Get but I would like to change it to Post in my provisioned config file. I can’t find any documentation about how to do this, is it supported in a config file and how?

As an example here is how one of my data sources is set up:

```
apiVersion: 1
datasources:
- name: my_influx_datasource
    grafana_url: https://grafana.mydomain.net:8080
    grafana_user: grafanauser
    grafana_password: password
    type: influxdb
    url: https://influxdb.mydomain.net:8086
    user: grafana
    password: password
    database: important_data
    access: proxy

```

What extra setting can I add here to set the http Method?

Cheers  
Martin

---

<div class="post-metadata">

**Author:** ![martinrw](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@martinrw](https://community.grafana.com/u/martinrw)\
**Post date:** [August 12, 2020, 2:35pm UTC](https://community.grafana.com/t/setting-http-method-for-a-provisioned-influx-data-type/34891/2 "2020-08-12T14:35:21Z")

</div>

Think I may have worked this out by looking at the code. Should simply be a case of adding in these lines to the above config:

```
  jsonData:
    httpMode: POST

```

Looks like it’s just the docs that are lacking a bit

---

<div class="post-metadata">

**Author:** ![anon90859526](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@anon90859526](https://community.grafana.com/u/anon90859526)\
**Post date:** [August 12, 2020, 2:47pm UTC](https://community.grafana.com/t/setting-http-method-for-a-provisioned-influx-data-type/34891/3 "2020-08-12T14:47:24Z")

</div>

If you have a suggestion to improve the docs, please file a PR! We love external doc contributions.

---

<div class="post-metadata">

**Author:** ![martinrw](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@martinrw](https://community.grafana.com/u/martinrw)\
**Post date:** [August 12, 2020, 4:26pm UTC](https://community.grafana.com/t/setting-http-method-for-a-provisioned-influx-data-type/34891/4 "2020-08-12T16:26:31Z")

</div>

Done - [https://github.com/grafana/grafana/pull/26964](https://github.com/grafana/grafana/pull/26964) 🙂
