> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/users/standard-registry-users-schemas-and-policies/schemas/creating-a-policy-schema-using-the-ui.md).

# Creating a Policy Schema using the UI

Policy Schema's can also be created by clicking on the New button.

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

Once the New button is clicked, we get a dialog box that asks for the following information:\
1\. Schema Name

2\. Policy Dropdown: To select any of the imported Policy

3\. Entity Dropdown: To select any of the Entity: VC / MRV

4\. Description of Schema.

5\. Add Field: To add any fields required for the Schema.

Instead of creating a new Schema from scratch, there is also an option to import it via File or via IPFS.

To import the Schema, click on the Import button.

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

Once the Import button is clicked, we get two options: Import from file and Import from IPFS

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

Import from file: You can select the required Schema .schema file from your local machine. Sample iREC Schema (iREC Schema.zip) is provided in the link: <https://github.com/hashgraph/guardian/tree/main/Demo%20Artifacts>

{% hint style="info" %}
Files with **.schema** extension are only accepted. These files are in zip format, i.e. they are zip archives of the text file.
{% endhint %}

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

Import from IPFS: You can also import Schema from IPFS by entering the correct Schema timestamp. Sample iREC Schema timestamp is below:\\

```
1644847084.945541771 (iREC 3 Policy)
```

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

Once the Schema is imported, we need to select the Policy from the Policy dropdown to connect the Schema and the Policy.

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

<figure><img src="/files/7AP6IXntld5wIrkF7cGi" alt=""><figcaption></figcaption></figure>

After selecting the required Policy, click on the Import button.

When the Schema is imported, it will be in draft status.

{% hint style="info" %}
**Note**: Initially when the Schema is created/imported, it will be in draft status.
{% endhint %}

Once the Schema is imported, we will have the following options:\
1\. Export the Schema and save it as .zip file in the local machine

2\. Editing the Schema

3\. Deleting the Schema

4\. Displaying JSON document

To Publish the Schema, click on Publish button.

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

After clicking on Publish, you will be prompted to enter the version. After entering the Version and pressing the submit button, the status will change to Published.

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

{% hint style="info" %}
**Note**: All Schemas connected to a Policy gets published automatically when the Policy gets published.
{% 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, and the optional `goal` query parameter:

```
GET https://docs.guardianservice.app/technical-information/users/standard-registry-users-schemas-and-policies/schemas/creating-a-policy-schema-using-the-ui.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.
