Del via


Rule Sets - Create Rule Set

Create Rule Set.
Creates the Rule Set for the environment group.

POST https://api.powerplatform.com/governance/environments/{environmentId}/environmentGroups/{groupId}/ruleSets?api-version=2022-03-01-preview

URI Parameters

Name In Required Type Description
environmentId
path True

string (uuid)

The unique identifier of the environment.

groupId
path True

string (uuid)

The unique identifier of the environment group.

api-version
query True

string

The API version.

Request Body

Name Type Description
environmentFilter

MgGovPolicyEnvironmentFilter

Defines the environment filters.

id

string

The ID of the Rule Set.

lastModified

string (date-time)

The last modified timestamp.

parameters

RuleSetParameters[]

The Rule Set parameters.

Responses

Name Type Description
201 Created

RuleSetDto

Successfully created Rule Set.

204 No Content

No Content.

400 Bad Request

MgGovErrorResponse

Bad Request.

401 Unauthorized

MgGovErrorResponse

Unauthorized.

403 Forbidden

MgGovErrorResponse

Forbidden.

500 Internal Server Error

MgGovErrorResponse

Internal Server Error.

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
Error
MgGovEnvironmentValues

Environment information.

MgGovErrorResponse

Standard error response.

MgGovFilterType

The type of environment filter.

MgGovPolicyEnvironmentFilter

Defines the environment filters.

MgGovResourceType

The type of resource.

MgGovRule

A rule definition.

MgGovRuleSetType

The type of the Rule Set.

RuleSetDto

Rule Set data transfer object.

RuleSetParameters

Parameters for a Rule Set.

Error

Name Type Description
code

string

Error code.

message

string

Error message.

MgGovEnvironmentValues

Environment information.

Name Type Description
id

string

The ID of the environment.

name

string

The name of the environment.

type

string

The type of the environment.

MgGovErrorResponse

Standard error response.

Name Type Description
error

Error

MgGovFilterType

The type of environment filter.

Value Description
NotSpecified
Include
Exclude

MgGovPolicyEnvironmentFilter

Defines the environment filters.

Name Type Description
type

MgGovFilterType

The type of environment filter.

values

MgGovEnvironmentValues[]

The environment information.

MgGovResourceType

The type of resource.

Value Description
NotSpecified
Flow
App
AuthoringBot
UsersBot

MgGovRule

A rule definition.

Name Type Description
id

string

The rule ID.

value

string

The rule value.

MgGovRuleSetType

The type of the Rule Set.

Value Description
NotSpecified
Sharing
AdminDigest
SolutionChecker
MakerOnboarding
Lifecycle
Copilot
CrossGeoCopilotDataMovement
GenerativeAISettings
CopilotAuth
FlowAutomationRestrictions

RuleSetDto

Rule Set data transfer object.

Name Type Description
environmentFilter

MgGovPolicyEnvironmentFilter

Defines the environment filters.

id

string

The ID of the Rule Set.

lastModified

string (date-time)

The last modified timestamp.

parameters

RuleSetParameters[]

The Rule Set parameters.

RuleSetParameters

Parameters for a Rule Set.

Name Type Description
resourceType

MgGovResourceType

The type of resource.

type

MgGovRuleSetType

The type of the Rule Set.

value

MgGovRule[]

The rule values.