# Demo Data

There is an inject endpoint that you can use to inject somewhat random press releases into the feed. Which can be used to simulate a press release going out.&#x20;

We can also pre-fill the feed with a few years random of demo data. That also contains properly tagged Financial Reports.

Use cases

* Feed is empty, since perhaps the customer is an IPO
* Testing WebSub subscription
  * HTTP Posthooks
  * Wordpress Plugin Subscription

## Inject Demo News Item

<mark style="color:green;">`POST`</mark> `https://feed.mfn.se/demo/inject/:entity_id`

You can inject demo News Items into your feed by posting to the following endpoint. Injects a somewhat random demo press release into the feed. Only works before until the customer has sent their first real release.&#x20;

#### Path Parameters

| Name       | Type   | Description                                                                                                                                                                 |
| ---------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| entity\_id | string | Typically this has the same value as the primary`feed_id`in the API, but if you received multiple feed\_id's only the main feed will be used for injecting demo news items. |

#### Query Parameters

| Name | Type   | Description                                                                   |                 |                 |
| ---- | ------ | ----------------------------------------------------------------------------- | --------------- | --------------- |
| type | string | <p>Choose the <code>type</code> of the press release to inject<br><code>\[ ir | pr ]</code></p> |                 |
| lang | string | <p>Choose language<br><code>\[ en                                             | sv              | fi ]</code></p> |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

Command line example using curl

```bash
curl -X POST https://feed.mfn.se/demo/inject/fd51fb4d-e5dc-4390-a11c-0dfd1eafba22?lang=fi
```

To inject multiple press releases with the same groupe\_id, add languages separeted with commas.\
Avalible languages are "en,sv,fi,no,zh,fr,de,da,pl,nl,lb,et,lv,lt,es"

See [Language Codes](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) to know which one the available languages represent.&#x20;

Multiple press releases with the same group\_id simulate when a company sends the same press release in different languages. This makes the releases receive the same groupe ID

```
curl -X POST https://feed.mfn.se/demo/inject/fd51fb4d-e5dc-4390-a11c-0dfd1eafba22?lang=en,sv
```

To specify tags and type for press releases to inject look at the following inject example.\
Two [tags](https://modfin.gitbook.io/mfn-integration-guide/-MbDBLBpI3LuyvwyWLVw/api/model/tags) need to be specified and coma separated. "type" is a quary param and takes "ir"(investor relation) or "pr"(public relation) as an argument.

```
curl -X POST https://feed.mfn.se/demo/inject/fd51fb4d-e5dc-4390-ae44-01755b290b31/:regulatory:mar,sub:report:annual?type=ir&lang=sv
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://modfin.gitbook.io/mfn-integration-guide/-MbDBLBpI3LuyvwyWLVw/api/demo-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
