Method: projects.locations.assessmentRules.create

Creates an assessment rule.

HTTP request

POST https://{endpoint}/v1alpha1/{parent=projects/*/locations/*}/assessmentRules

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource of the assessment rule. Required. The location to create a assessment rule for. Format: projects/<Project ID>/locations/<Location ID> or projects/<Project Number>/locations/<Location ID>

Query parameters

Parameters
assessmentRuleId

string

Optional. A unique ID for the new AssessmentRule. This ID will become the final component of the AssessmentRule's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$.

Request body

The request body contains an instance of AssessmentRule.

Response body

If successful, the response body contains a newly created instance of AssessmentRule.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • contactcenterinsights.assessmentRules.create

For more information, see the IAM documentation.