---
title: "POST /v1/{+parent}/assessmentRules"
method: POST
path: "/v1/{+parent}/assessmentRules"
tags: ["projects"]
---

# POST /v1/{+parent}/assessmentRules

`POST /v1/{+parent}/assessmentRules`

Creates an assessment rule.

## Path parameters

- `parent` string, required

## Query parameters

- `assessmentRuleId` string

## Request body

- GoogleCloudContactcenterinsightsV1AssessmentRule — The CCAI Insights project wide assessment rule. This assessment rule will be applied to all conversations from the previous sampling cycle that match the sample rule defined in the assessment rule. One project can have multiple assessment rules.
  - `name` string — Identifier. The resource name of the assessment rule. Format: projects/{project}/locations/{location}/assessmentRules/{assessment_rule}
  - `createTime` string, google-datetime — Output only. The time at which this assessment rule was created.
  - `scheduleInfo` GoogleCloudContactcenterinsightsV1ScheduleInfo — Message for schedule info.
    - `endTime` string, google-datetime — End time of the schedule. If not specified, will keep scheduling new pipelines for execution util the schedule is no longer active or deleted.
    - `timeZone` string — The timezone to use for the groc expression. If not specified, defaults to UTC.
    - `startTime` string, google-datetime — Start time of the schedule. If not specified, will start as soon as the schedule is created.
    - `schedule` string — The groc expression. Format: `every number [synchronized]` Time units can be: minutes, hours Synchronized is optional and indicates that the schedule should be synchronized to the start of the interval: every 5 minutes synchronized means 00:00, 00:05 ... Otherwise the start time is random within the interval. Example: `every 5 minutes` could be 00:02, 00:07, 00:12, ...
  - `updateTime` string, google-datetime — Output only. The most recent time at which this assessment rule was updated.
  - `active` boolean — If true, apply this rule to conversations. Otherwise, this rule is inactive.
  - `sampleRule` GoogleCloudContactcenterinsightsV1SampleRule — Message for sampling conversations.
    - `sampleRow` string, int64 — Number of the conversations that we should sample based on the dimension.
    - `dimension` string — Optional. Group by dimension to sample the conversation. If no dimension is provided, the sampling will be applied to the project level. Current supported dimensions is 'quality_metadata.agent_info.agent_id'.
    - `conversationFilter` string — To specify the filter for the conversions that should apply this sample rule. An empty filter means this sample rule applies to all conversations.
    - `samplePercentage` number, double — Percentage of conversations that we should sample based on the dimension between [0, 100].
  - `displayName` string — Display Name of the assessment rule.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/contactcenterinsights.md) · [All operations](https://skmtc.net/google/apis/contactcenterinsights/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/contactcenterinsights/revisions/e071ddf4dfc3/schema)
