# 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: 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://help.tellius.com/tellius-6.3/embedding-tellius/embedding-url/embedding-vizpads/edit-save-and-share-a-vizpad.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.
