The POST /environments/{environmentId}/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.