The POST /environments/{{envID}}/resources/{{resourceID}}/scopes operation adds a new custom resource scope. The request URL specifies the new scope’s associated environment ID and resource ID.

The request body must specify a value for the scope name property, and the name value must be unique within the specified environment resource. If the resource’s type property is OPENID_CONNECT, the request can also include the optional mappedClaims[] property to add OpenID Connect mapped claims to the specified scope.