# Pushing of data

**URL:** <https://discuss.elastic.co/t/pushing-of-data/322517>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [January 5, 2023, 7:13am UTC](https://discuss.elastic.co/t/pushing-of-data/322517 "2023-01-05T07:13:02Z")\
**Posts on this page:** 2\
**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 5, 2023, 7:13am UTC](https://discuss.elastic.co/t/pushing-of-data/322517/1 "2023-01-05T07:13:02Z")

</div>

Error in pushing of data: `raise HTTP_EXCEPTIONS.get(status_code, TransportError)( elasticsearch.exceptions.AuthorizationException: AuthorizationException(403, 'security_exception', 'action [indices:admin/create] is unauthorized for user [guest] with roles [viewer,create_index,manage,all], this action is granted by the index privileges [create_index,manage,all]')`  
It was pushing the data well and never showed any error. But then I tried to update a filter directly from Kibana and then it started showing this error.  
This is the code that i wrote:

```auto
const axios = require('axios');

async function updateFilters() {
  try {
    const response = await axios.post(
      '/api/kibana/dashboards/e1af0b80-8285-11ed-8b1c-73fa260fa999/_update_filter',
      {
        // replace e1af0b80-8285-11ed-8b1c-73fa260fa999 with the ID of the dashboard
        filters: [
          {
            query: {
              match_phrase: {
                event: 'lionelmessi'
              }
            }
          }
        ]
      },
      {
        headers: {
          // replace YOUR_API_KEY with your API key
          'kbn-xsrf': 'YOUR_API_KEY'
        }
      }
    );
    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
}

updateFilters();

```

Can I reset what I did in this code? The pushing of the code through python was happening well but then after I tried this it did not work.

---

<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 2, 2023, 7:13am UTC](https://discuss.elastic.co/t/pushing-of-data/322517/2 "2023-02-02T07:13:56Z")

</div>

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