> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/7.6/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/7.6/data-visualization/self-service/getting-started/creating-a-new-story/accessing-the-story-module/creating-and-updating-instance.md).

# Creating and Updating Instance

## Creating Instance

{% hint style="success" %}
*<mark style="color:green;">Prerequisite:</mark> Please make sure that the* [***Data Store Settings*** ](/7.6/core-platform/platform-administration/admin-panel-options/configurations/data-store-settings.md)*has been configured from the **Admin module** to **access the Instance functionality** for the* *Data Store inside a **Story.***
{% endhint %}

{% hint style="success" %}
*Check out the given walk-through on how to create an Instance based or Personalized Story.*
{% endhint %}

<figure><img src="/files/9PVpzJXPGzrndSINPjgI" alt=""><figcaption><p>Personalized Story Creation</p></figcaption></figure>

The ***Create Instance*** option is used to load the data for the first time from the datastore into Elastic or MongoDB server as the configuration done in the ***Admin Module*** for Datastore Settings. The ***Time to Live*** for the data will be of 1-30 days.

* Navigate to the Data Store list inside a ***Create New Story*** dialog box.
* Select the ***Personalized*** Data Store Category.
* Select a Data Store from the Create New Story page.
* Click the ***Create Instance*** icon for the selected Data Store (The ***Create Instance*** option appears in case of the newly created ***Data Stores***).
* The ***Data Store instance*** page opens the selected Data Store.

<figure><img src="/files/5E1Xm8uJCC1rDLzrIxtY" alt=""><figcaption><p>Accessing the Create Instance option</p></figcaption></figure>

* Provide the ***Time to Live*** value in days. The maximum set *Time to Live limit* is 30 days.
* Click the ***Refresh*** option.

<figure><img src="/files/6TAvAcz4aknRNFWkWv9K" alt=""><figcaption><p>Providing Time to Live (TTL) limit in days</p></figcaption></figure>

* A confirmation message appears to update the Data Store details. &#x20;
* Click the ***Save*** option. &#x20;

<figure><img src="/files/aEok3Av4pWopJ2w8Cxwt" alt=""><figcaption></figcaption></figure>

* Navigate back to the ***Data Store list and to the specific Data Store*** from the displayed list under a Story.
* The ***Create Instance*** option gets updated with the no. of days.   &#x20;

<figure><img src="/files/po48udeFo84OJlHKqZhM" alt=""><figcaption></figcaption></figure>

### Updating Instance

The permitted ***Time to Live*** limit for a Data Store is only 30 days (maximum). If it goes above that, data will not be there in the Story. Hence, the user can manually update the instance. The ***Days Left*** column will highlight such condition as flashing ***Expire*** status in the red color. Click the user gets redirected to update the instance for the selected Data Store so the data will be refreshed again in the ***ES*** or ***MongoDB***.

* Navigate to the ***Create New Story*** page.
* Select a Data Store from the ***Personalised*** category that has been expired.
* Click on the Data Store.
* The ***Time to Live*** (TTL) option appears.
* Mention no. of days (up to 30 days is allowed for TTL)
* Click the ***Refresh*** option.

<figure><img src="/files/StPEocPgBReWJYPBsC7F" alt=""><figcaption><p>Updating an Instance</p></figcaption></figure>

* A notification message appears.   &#x20;

<figure><img src="/files/AtjcL9Hw1oTaP0jUEvlz" alt=""><figcaption></figcaption></figure>

* The Data Store gets refreshed, and the inserted no. of days get reflected under the Days Left column.

{% hint style="info" %}
Please Note: The user can distinguish between Datastores:

* Distinguish between instances and scheduler-based data stores.
* Distinguish between the ***Active*** and ***Expired*** instances.

  * The Expired Data Stores are mentioned with the Expired Status.

  <figure><img src="/files/uGglZophD3yj23ubXDeE" alt=""><figcaption></figcaption></figure>

{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.bdb.ai/7.6/data-visualization/self-service/getting-started/creating-a-new-story/accessing-the-story-module/creating-and-updating-instance.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.
