---
title: "POST /ver2/PortalService.svc/portal/dashboard/pagegroups/{pageGroupIdOrName}/pages"
method: POST
path: "/ver2/PortalService.svc/portal/dashboard/pagegroups/{pageGroupIdOrName}/pages"
tags: ["Portal"]
---

# POST /ver2/PortalService.svc/portal/dashboard/pagegroups/{pageGroupIdOrName}/pages

`POST /ver2/PortalService.svc/portal/dashboard/pagegroups/{pageGroupIdOrName}/pages`

## Request

- Base URL: `https://api.enviance.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enviance.com/ver2/PortalService.svc/portal/dashboard/pagegroups/{pageGroupIdOrName}/pages`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/PortalService.svc/portal/dashboard/pagegroups/:pageGroupIdOrName/pages/post.ts> (a function with typed inputs; its response is checked against the schema)

envianceSdk.portal.createPageGroup
```
[
  {
    "name": "Page Group1",
    "properties": {
      "key1": "value 1",
      "key 2": "value 2"
    }
  },
  "onsuccess",
  "onerror"
]
```
envianceSdk.portal.createPage
```
[
  "Page Group",
  {
    "name": "Page Name",
    "properties": {
      "pageProperty1": "value 1",
      "key 2": "value 2"
    },
    "accessLevels": {
      "visibleToAll": "false",
      "exceptUsers": [
        {
          "accesslevel": "view",
          "id": "3afb765c-e75b-4e32-8870-34a69a4e6861"
        }
      ],
      "exceptGroups": [
        {
          "accesslevel": "view",
          "id": "3afb765c-e75b-4e32-8870-34a69a4e6861"
        }
      ]
    }
  },
  "onsuccess",
  "onerror"
]
```

## Path parameters

- `pageGroupIdOrName` string, required

## Headers

- `EnvApi-Systemid` string
- `EnvApi-Packageid` string
- `EnvApi-Udf-DateTime-Iso-In-CustomFields` string
- `EnvApi-Udf-DateTime-ReadInUserTz` string
- `EnvApi-Udf-Value-Invariant` string
- `EnvApi-Localization-All` string
- `x-client-request-id` string

## Request body

- CreatePage
  - `pageInfo` EnvianceRestServicesVer2PortalDtoPageWithAllInfo
    - `accessLevels` EnvianceRestServicesVer2PortalDtoPagePermissionsInfo
      - `visibleToAll` boolean
      - `exceptUsers` EnvianceRestServicesVer2PortalDtoUserGroupPermissionInfo[]
        - `id` string, guid
        - `name` string
        - `accesslevel` string
      - `exceptGroups` EnvianceRestServicesVer2PortalDtoUserGroupPermissionInfo[]
        - `id` string, guid
        - `name` string
        - `accesslevel` string
    - `id` string, guid
    - `pagegroupid` string, guid
    - `name` string
    - `properties` object

## Response `default`

not available

- string, guid

---

[API](https://skmtc.dev/enviance/apis/restapi.md) - [All operations](https://skmtc.dev/enviance/apis/restapi/llms.txt) - [OpenAPI document](https://skmtc.dev/enviance/apis/restapi/revisions/45b2200a8cf2?raw)
