# Create Permission

When you visit the Permission page, you have the UI like the below one, where we have the option to add new permission and to create a permission category

<figure><img src="https://1030029444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FruOScZYB7ObNWqlN9ETi%2Fuploads%2Fi0Jj24NWtGXjSSYrSoKu%2FScreenshot.png?alt=media&#x26;token=04635317-2852-4fb3-ba62-fb42c97ac51d" alt=""><figcaption></figcaption></figure>

We will start on how to create a permission category

## Permission Category

Let's Suppose you created a new module as CMS, and you wanted to add that module inside the permission, then first you have to create a permission category named CMS, So when you click on the permission category you have the UI like the below one.

<figure><img src="https://1030029444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FruOScZYB7ObNWqlN9ETi%2Fuploads%2FB7qV7OQku6jD6E6VBpkh%2FScreenshot.png?alt=media&#x26;token=204dcbb7-2c59-4c8f-8266-df4f8dda23e6" alt=""><figcaption></figcaption></figure>

To create the permission category you just have to click on add permission category, then new popup will open as shown in the above image, where you have to add your permission name and click on the save.

## New Permission

Now it's time to add our cms category to the permission, when you click on the new permission you have the UI like the below one.

<figure><img src="https://1030029444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FruOScZYB7ObNWqlN9ETi%2Fuploads%2FNWViwxliQxhO0Tvgrwin%2FScreenshot.png?alt=media&#x26;token=bc03f5e8-2f14-4f63-b172-f60bbd441d7f" alt=""><figcaption></figcaption></figure>

So here first you have to choose the route category under which you want to add your permission, and now it's time to add your name and route name, Name can be anything but the route name will be the one that you have given in your code.

I am gonna add my code screenshot below so that you can be understood what I have to add inside the route name

<figure><img src="https://1030029444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FruOScZYB7ObNWqlN9ETi%2Fuploads%2FIfh4BCzCjDStEjAvmVnk%2FScreenshot%202023-03-02%20233819.png?alt=media&#x26;token=e18766dd-6d3b-4853-8b6a-5084d42d0866" alt=""><figcaption></figcaption></figure>

So in my case, I will add the route name as admin.cms.pages.in, admin.cms.page.create, and so on, please refer to the below screenshot for more clarification.

<figure><img src="https://1030029444-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FruOScZYB7ObNWqlN9ETi%2Fuploads%2FQ00inHCzmUtI9Q8CN1F7%2FScreenshot.png?alt=media&#x26;token=dcca2cea-6340-4f85-a9cd-e7b518fb9420" alt=""><figcaption></figcaption></figure>

Now you got the idea, of how to create permission in the easy ticket, it's easy, right?


---

# 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://code-hunger.gitbook.io/easy-ticket/administrator-login/permissions/create-permission.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.
