# IRPCWebAccessAdmin.CreateWebSite

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Web access administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/CreateWebSite/

Badges: `Administration API / specialized` `internal: not for applications` `admin` `session`

Creates a new IIS web site for M-Files Web.

- **Service:** [Web access administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/index.md) `MFiles.IRPCWebAccessAdmin`
- **gRPC method:** `/MFiles.IRPCWebAccessAdmin/CreateWebSite`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/create-web-site`
- **Request:** [`CreateWebSiteRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/CreateWebSite/index.md#request)
- **Response:** [`CreateWebSiteResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWebAccessAdmin/CreateWebSite/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

**For M-Files components only.** Used by M-Files Admin. Applications should not call it.
- Changes the IIS configuration of the server computer. Requires Windows Server; other Windows
  editions fail.
- Requires the system administrator server role (server right `edit_web_access_settings`).

<a id="request"></a>

## Request: CreateWebSiteRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `name` | `string` | The name of the new web site. |
| `enable_new_web` | `bool` | True to set the site up for the new M-Files Web. |
| `endpoint` | `string` | The port the site listens on, for example `80`. |

<a id="response"></a>

## Response: CreateWebSiteResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `web_site` | [`ADSIObject`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ADSIObject/index.md) | The created web site. |
| `web_site.name` | `string` | The name of the object. |
| `web_site.display_name` | `string` | The display name of the object. |
| `web_site.schema_class` | `string` | The name of the object's schema class. |
| `web_site.guid` | `string` | The GUID of the object as stored in the underlying directory store. |
| `web_site.path` | `string` | The object's ADsPath that uniquely identifies this object from all others. |
| `web_site.parent_path` | `string` | The ADsPath string for the parent of the object. |
