# Help with POST URL

**URL:** https://discuss.elastic.co/t/help-with-post-url/343444
**Category:** Elasticsearch
**Tags:** elastic-stack-reporting, dashboard
**Created:** [September 20, 2023, 10:35am UTC](https://discuss.elastic.co/t/help-with-post-url/343444 "2023-09-20T10:35:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ElasticNovis](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ElasticNovis](https://discuss.elastic.co/u/ElasticNovis)
#### Post date: [September 20, 2023, 10:35am UTC](https://discuss.elastic.co/t/help-with-post-url/343444/1 "2023-09-20T10:35:20Z")

</div>

Hi, I am new to POST URLs but my goal is to generate a pdf from a dashboard automatically, and save it locally to a shared area.

I have got my POST URL of my dashboard and using Unix curl command I have tried to get the required dashboard using the following:

`curl -XPOST -u elastic:changeme -H 'kbn-xsrf: true' '<URL>/api/reporting/generate/printablePdfV2?.....' -o /tmp/dashboard.pdf`

That looks to generate a report in Kibana Reports (/app/management/insightsAndAlerting/reporting), but then I have to download it manually. I thought the -o would have give me what I wanted.

Any advice from someone who has done this before would be appreciated.  
I feel like I am almost there, I just need to get the report downloaded at the same time.

Thanks.

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [September 20, 2023, 10:45am UTC](https://discuss.elastic.co/t/help-with-post-url/343444/2 "2023-09-20T10:45:35Z")

</div>

Hi @ElasticNovis,

Welcome to the community! You're right that the POST method will generate the report rather than send the report to you.

The response will give you the `path` attribute that can then use with a follow-up HTTP GET request to download the report. There is some details [here in the docs](https://www.elastic.co/guide/en/kibana/current/automating-report-generation.html#use-a-script) that should help.

---

<div class="post-metadata">

### Author: ![ElasticNovis](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@ElasticNovis](https://discuss.elastic.co/u/ElasticNovis)
#### Post date: [September 26, 2023, 10:10am UTC](https://discuss.elastic.co/t/help-with-post-url/343444/3 "2023-09-26T10:10:28Z")

</div>

Hi Carly, just confirming that this is the correct link. ['logstash\_plugins'](https://www.elastic.co/support/matrix#logstash_plugins)

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [September 26, 2023, 11:14am UTC](https://discuss.elastic.co/t/help-with-post-url/343444/4 "2023-09-26T11:14:49Z")

</div>

Oh sorry, not that is not the right link. Thanks for flagging!

I've corrected the link in the prior post but here it is as well:

> **[Automatically generate reports | Kibana Guide \[8.10\] | Elastic](https://www.elastic.co/guide/en/kibana/current/automating-report-generation.html#use-a-script)**

---

<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: [October 24, 2023, 11:14am UTC](https://discuss.elastic.co/t/help-with-post-url/343444/5 "2023-10-24T11:14:53Z")

</div>

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