Skip to main content

qa_question_tags

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

Overview

Nameqa_question_tags
TypeResource
Idgoogle.contactcenterinsights.qa_question_tags

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. Resource name for the QaQuestionTag Format projects/{project}/locations/{location}/qaQuestionTags/{qa_question_tag} In the above format, the last segment, i.e., qa_question_tag, is a server-generated ID corresponding to the tag resource.
createTimestring (google-datetime)Output only. The time at which the question tag was created.
displayNamestringRequired. A user-specified display name for the tag.
qaQuestionIdsarrayOptional. The list of Scorecard Question IDs that the tag applies to. Each QaQuestionId is represented as a full resource name containing the Question ID. Lastly, Since a tag may not necessarily be referenced by any Scorecard Questions, we treat this field as optional.
updateTimestring (google-datetime)Output only. The most recent time at which the question tag was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, qaQuestionTagsIdGets a QaQuestionTag.
listselectprojectsId, locationsIdfilterLists the question tags.
createinsertprojectsId, locationsIdqaQuestionTagIdCreates a QaQuestionTag.
patchupdateprojectsId, locationsId, qaQuestionTagsIdupdateMaskUpdates a QaQuestionTag.
deletedeleteprojectsId, locationsId, qaQuestionTagsIdDeletes a QaQuestionTag.

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
qaQuestionTagsIdstring
filterstring
qaQuestionTagIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a QaQuestionTag.

SELECT
name,
createTime,
displayName,
qaQuestionIds,
updateTime
FROM google.contactcenterinsights.qa_question_tags
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND qaQuestionTagsId = '{{ qaQuestionTagsId }}' -- required;

INSERT examples

Creates a QaQuestionTag.

INSERT INTO google.contactcenterinsights.qa_question_tags (
data__name,
data__displayName,
data__qaQuestionIds,
projectsId,
locationsId,
qaQuestionTagId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ qaQuestionIds }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ qaQuestionTagId }}'
RETURNING
name,
createTime,
displayName,
qaQuestionIds,
updateTime
;

UPDATE examples

Updates a QaQuestionTag.

UPDATE google.contactcenterinsights.qa_question_tags
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__qaQuestionIds = '{{ qaQuestionIds }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND qaQuestionTagsId = '{{ qaQuestionTagsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a QaQuestionTag.

DELETE FROM google.contactcenterinsights.qa_question_tags
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND qaQuestionTagsId = '{{ qaQuestionTagsId }}' --required;