Skip to main content

qa_scorecards

Creates, updates, deletes, gets or lists a qa_scorecards resource.

Overview

Nameqa_scorecards
TypeResource
Idgoogle.contactcenterinsights.qa_scorecards

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The scorecard name. Format: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}
createTimestring (google-datetime)Output only. The time at which this scorecard was created.
descriptionstringA text description explaining the intent of the scorecard.
displayNamestringThe user-specified display name of the scorecard.
isDefaultbooleanWhether the scorecard is the default one for the project. A default scorecard cannot be deleted and will always appear first in scorecard selector.
sourcestringOutput only. The source of the scorecard.
updateTimestring (google-datetime)Output only. The most recent time at which the scorecard was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, qaScorecardsIdGets a QaScorecard.
listselectprojectsId, locationsIdpageSize, pageToken, qaScorecardSourcesLists QaScorecards.
createinsertprojectsId, locationsIdqaScorecardIdCreate a QaScorecard.
patchupdateprojectsId, locationsId, qaScorecardsIdupdateMaskUpdates a QaScorecard.
deletedeleteprojectsId, locationsId, qaScorecardsIdforceDeletes a QaScorecard.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
qaScorecardsIdstring
forceboolean
pageSizeinteger (int32)
pageTokenstring
qaScorecardIdstring
qaScorecardSourcesstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a QaScorecard.

SELECT
name,
createTime,
description,
displayName,
isDefault,
source,
updateTime
FROM google.contactcenterinsights.qa_scorecards
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND qaScorecardsId = '{{ qaScorecardsId }}' -- required;

INSERT examples

Create a QaScorecard.

INSERT INTO google.contactcenterinsights.qa_scorecards (
data__name,
data__displayName,
data__description,
data__isDefault,
projectsId,
locationsId,
qaScorecardId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ description }}',
{{ isDefault }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ qaScorecardId }}'
RETURNING
name,
createTime,
description,
displayName,
isDefault,
source,
updateTime
;

UPDATE examples

Updates a QaScorecard.

UPDATE google.contactcenterinsights.qa_scorecards
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__isDefault = {{ isDefault }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND qaScorecardsId = '{{ qaScorecardsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
description,
displayName,
isDefault,
source,
updateTime;

DELETE examples

Deletes a QaScorecard.

DELETE FROM google.contactcenterinsights.qa_scorecards
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND qaScorecardsId = '{{ qaScorecardsId }}' --required
AND force = '{{ force }}';