# Will this thing work regarding updation of Kibana dashboard through python

**URL:** <https://discuss.elastic.co/t/will-this-thing-work-regarding-updation-of-kibana-dashboard-through-python/323298>\
**Category:** Kibana\
**Created:** [January 17, 2023, 7:09am UTC](https://discuss.elastic.co/t/will-this-thing-work-regarding-updation-of-kibana-dashboard-through-python/323298 "2023-01-17T07:09:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shashank02](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashank02/32/99866_2.png) [@Shashank02](https://discuss.elastic.co/u/Shashank02)\
**Post date:** [January 17, 2023, 7:09am UTC](https://discuss.elastic.co/t/will-this-thing-work-regarding-updation-of-kibana-dashboard-through-python/323298/1 "2023-01-17T07:09:13Z")

</div>

This is a code that I wrote by taking references from many sites:

```auto
import requests

headers = {
    'Content-Type': 'application/json',
    'kbn-version': '8.4.1'
}

data = {
    "options": {
        "query": {
            "bool": {
                "filter": [
                    {
                        "match": {
                            "topic": "rajamouli"
                        }
                    }
                ]
            }
        }
    }
}

filter_id = "1663536927031"

response = requests.put(f'https://social-media-analyzer.kb.ap-south-1.aws.elastic-cloud.com:9243/s/testspace/api/input_controls/control/{filter_id}', headers=headers, json=data, auth=('username', 'password'))
print(response.json())

```

But it is showing this error:

```auto
{'statusCode': 404, 'error': 'Not Found', 'message': 'Not Found'}

```

Please someone help me out here.

---

<div class="post-metadata">

**Author:** ![Shashank02](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shashank02/32/99866_2.png) [@Shashank02](https://discuss.elastic.co/u/Shashank02)\
**Post date:** [January 17, 2023, 7:12am UTC](https://discuss.elastic.co/t/will-this-thing-work-regarding-updation-of-kibana-dashboard-through-python/323298/2 "2023-01-17T07:12:27Z")

</div>

For better reference, this is what I am trying to achieve. [KQL syntax with python](https://discuss.elastic.co/t/kql-syntax-with-python/323218)

---

<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:** [February 14, 2023, 7:12am UTC](https://discuss.elastic.co/t/will-this-thing-work-regarding-updation-of-kibana-dashboard-through-python/323298/3 "2023-02-14T07:12:59Z")

</div>

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