Websites - Create Website
Create a Power Pages website.
Trigger the creation of a new website
POST https://api.powerplatform.com/powerpages/environments/{environmentId}/websites?api-version=2022-03-01-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
environment
|
path | True |
string |
|
api-version
|
query | True |
string |
The API version |
Request Body
Name | Required | Type | Description |
---|---|---|---|
dataverseOrganizationId | True |
string |
Dataverse organization's unique identifier (ID) |
name | True |
string |
Name of the website |
selectedBaseLanguage | True |
integer |
Language unique identifier (ID) of the website - https://go.microsoft.com/fwlink/?linkid=2208135 |
subdomain | True |
string |
Subdomain for the website URL |
templateName | True |
enum:
|
Website template name |
websiteRecordId |
string |
Dataverse record unique identifier (ID) of the website |
Responses
Name | Type | Description |
---|---|---|
202 Accepted |
Accepted Headers Operation-Location: string |
|
400 Bad Request |
Bad Request |
|
401 Unauthorized |
Unauthorized |
|
404 Not Found |
Not Found |
Security
oauth2
Microsoft Entra ID OAuth2
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize?resource=https://api.powerplatform.com
Scopes
Name | Description |
---|---|
.default | .default |
Definitions
Name | Description |
---|---|
Details | |
Error | |
Error |
|
New |
Details
Name | Type | Description |
---|---|---|
code |
string |
Error code |
message |
string |
Error message |
target |
string |
Target parameter |
Error
Name | Type | Description |
---|---|---|
code |
string |
Error code |
details |
Details[] |
|
message |
string |
Error message |
target |
string |
Target parameter |
ErrorMessage
Name | Type | Description |
---|---|---|
error |
NewWebsiteRequest
Name | Type | Description |
---|---|---|
dataverseOrganizationId |
string |
Dataverse organization's unique identifier (ID) |
name |
string |
Name of the website |
selectedBaseLanguage |
integer |
Language unique identifier (ID) of the website - https://go.microsoft.com/fwlink/?linkid=2208135 |
subdomain |
string |
Subdomain for the website URL |
templateName |
enum:
|
Website template name |
websiteRecordId |
string |
Dataverse record unique identifier (ID) of the website |