> For the complete documentation index, see [llms.txt](https://help.tellius.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.tellius.com/tellius-6.1/embedding-tellius/embedding-url/embedding-vizpads/edit-save-and-share-a-vizpad.md).

# Edit, save, and share a Vizpad

### **Editing a Vizpad**

```javascript
telliusFrame.postMessage({
                actionType: "enableEditModeForWindowComm"
            }, "*");
```

The default **Cancel** button will be removed when the above actionType is applied.

### **Saving a Vizpad**

To save a Vizpad to an existing project,

```javascript
telliusFrame.postMessage({
                actionType: "saveVizpadForWindowComm"
            }, "*");
```

{% hint style="warning" %}
When you save the Vizpad using the actionType `saveVizpadForWindowComm`, the Vizpad will not change its state to **View** mode. It will still be retained in the **Edit** mode unless a postMessage is sent requesting to enter **View** mode.
{% endhint %}

On successful saving of a Vizpad, you will be notified with a message in the top banner. In addition, a message with the actionType `VIZPAD_SAVED` will be sent to the embedding app. If a Vizpad is not saved, then the message with the actionType `VIZPAD_SAVED_FAILED` will be sent from Tellius.

### **Sharing a Vizpad**

```javascript
telliusFrame.postMessage({
	"sharedWithId": "ID_of_the_user_to_be_shared",
	"objectId": "ID_of_the_object",
	"objectKind": "vizPad",
	"permission": "w",// it can be ‘w’ or ‘r’
	"sharedWithKind": "user", // it can be ‘user’ or ‘group’
}, "*");
```

* The value of the field `permission` can be set to "w" for write permissions, or to "r" for read-only permissions.
* The value of the field `sharedWithKind` can be "user" or "group" as required.


---

# 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, and the optional `goal` query parameter:

```
GET https://help.tellius.com/tellius-6.1/embedding-tellius/embedding-url/embedding-vizpads/edit-save-and-share-a-vizpad.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
