qa_question_tags
Creates, updates, deletes, gets or lists a qa_question_tags
resource.
Overview
Name | qa_question_tags |
Type | Resource |
Id | google.contactcenterinsights.qa_question_tags |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. 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. |
createTime | string (google-datetime) | Output only. The time at which the question tag was created. |
displayName | string | Required. A user-specified display name for the tag. |
qaQuestionIds | array | Optional. 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. |
updateTime | string (google-datetime) | Output only. The most recent time at which the question tag was updated. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Identifier. 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. |
createTime | string (google-datetime) | Output only. The time at which the question tag was created. |
displayName | string | Required. A user-specified display name for the tag. |
qaQuestionIds | array | Optional. 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. |
updateTime | string (google-datetime) | Output only. The most recent time at which the question tag was updated. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , qaQuestionTagsId | Gets a QaQuestionTag. | |
list | select | projectsId , locationsId | filter | Lists the question tags. |
create | insert | projectsId , locationsId | qaQuestionTagId | Creates a QaQuestionTag. |
patch | update | projectsId , locationsId , qaQuestionTagsId | updateMask | Updates a QaQuestionTag. |
delete | delete | projectsId , locationsId , qaQuestionTagsId | Deletes 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.
Name | Datatype | Description |
---|---|---|
locationsId | string | |
projectsId | string | |
qaQuestionTagsId | string | |
filter | string | |
qaQuestionTagId | string | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
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;
Lists the question tags.
SELECT
name,
createTime,
displayName,
qaQuestionIds,
updateTime
FROM google.contactcenterinsights.qa_question_tags
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND filter = '{{ filter }}';
INSERT
examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: qa_question_tags
props:
- name: projectsId
value: string
description: Required parameter for the qa_question_tags resource.
- name: locationsId
value: string
description: Required parameter for the qa_question_tags resource.
- name: name
value: string
description: >
Identifier. 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.
- name: displayName
value: string
description: >
Required. A user-specified display name for the tag.
- name: qaQuestionIds
value: array
description: >
Optional. 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.
- name: qaQuestionTagId
value: string
UPDATE
examples
- patch
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
- delete
Deletes a QaQuestionTag.
DELETE FROM google.contactcenterinsights.qa_question_tags
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND qaQuestionTagsId = '{{ qaQuestionTagsId }}' --required;