# Curl command to put value in Kibana 6.3

**URL:** <https://discuss.elastic.co/t/curl-command-to-put-value-in-kibana-6-3/159840>\
**Category:** Kibana\
**Created:** [December 7, 2018, 4:41am UTC](https://discuss.elastic.co/t/curl-command-to-put-value-in-kibana-6-3/159840 "2018-12-07T04:41:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bishwajitsamanta1689](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bishwajitsamanta1689/32/42871_2.png) [@bishwajitsamanta1689](https://discuss.elastic.co/u/bishwajitsamanta1689)\
**Post date:** [December 7, 2018, 4:41am UTC](https://discuss.elastic.co/t/curl-command-to-put-value-in-kibana-6-3/159840/1 "2018-12-07T04:41:24Z")

</div>

Hi,  
I need a curl command to put some value in Kibana Advanced Configuration.  
Current way of doing is , Kibana Console --\> Advanced Settings --\> dateFormat:tz --\> Put the Value as GMT. I need to do that through curl command, any idea of how to achieve that.

Kibana 6.3  
Elasticsearch 6.3

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [December 7, 2018, 8:14pm UTC](https://discuss.elastic.co/t/curl-command-to-put-value-in-kibana-6-3/159840/2 "2018-12-07T20:14:08Z")

</div>

Hi there, I believe [https://github.com/elastic/kibana/issues/14395](https://github.com/elastic/kibana/issues/14395) is what you're looking for.

---

<div class="post-metadata">

**Author:** ![bishwajitsamanta1689](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bishwajitsamanta1689/32/42871_2.png) [@bishwajitsamanta1689](https://discuss.elastic.co/u/bishwajitsamanta1689)\
**Post date:** [December 9, 2018, 7:22am UTC](https://discuss.elastic.co/t/curl-command-to-put-value-in-kibana-6-3/159840/3 "2018-12-09T07:22:40Z")

</div>

Yeah i saw that actually but i was unable to figure out what should the syntax i should use, as i am very new to kibana and if i try to execute that command using XGET i am getting empty reply.  
It would be very helpful if you let me know the curl command .

curl -XGET --insecure -u admin:admin "[http://localhost:5602/api/kibana/settings](http://localhost:5602/api/kibana/settings)"  
curl -XGET --insecure -u admin:admin "[http://localhost:5602/api/\*](http://localhost:5602/api/*)"

if i am using https, then below error. But i can login to Kibana UI and execute that operation.

curl -XGET --insecure -u admin:Alcatraz2.0 "[https://localhost:5602/api/\*](https://localhost:5602/api/*)"  
{"statusCode":404,"error":"Not Found","message":"Not Found"}

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [December 11, 2018, 8:34pm UTC](https://discuss.elastic.co/t/curl-command-to-put-value-in-kibana-6-3/159840/4 "2018-12-11T20:34:28Z")

</div>

Here's the syntax you need to use:

```auto
curl -X POST -H "Content-Type: application/json" -H "kbn-xsrf: true" -d '{"value":"12"}' http://localhost:5601/api/kibana/settings/visualization:tileMap:maxPrecision -u username:password

```

If you're running in development mode, there will be a "base path" in the URL when you visit kibana, e.g. `http://localhost:5601/BASE_PATH/app/kibana`. In this case, you'll need to use the base path as part of the API URL too:

```auto
curl -X POST -H "Content-Type: application/json" -H "kbn-xsrf: true" -d '{"value":"12"}' http://localhost:5601/BASE_PATH/api/kibana/settings/visualization:tileMap:maxPrecision -u username:password

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 8, 2019, 8:34pm UTC](https://discuss.elastic.co/t/curl-command-to-put-value-in-kibana-6-3/159840/5 "2019-01-08T20:34:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
