Updates the feedback received from the user for a single turn of the bot response.
HTTP request
POST https://{endpoint}/v3beta1/{session=projects/*/locations/*/agents/*/sessions/*}:submitAnswerFeedback
Where {endpoint}
is one of the supported service endpoints.
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
session |
Required. The name of the session the feedback was sent to. Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"responseId": string,
"answerFeedback": {
object ( |
Fields | |
---|---|
response |
Required. ID of the response to update its feedback. This is the same as DetectIntentResponse.response_id. |
answer |
Required. Feedback provided for a bot answer. |
update |
Optional. The mask to control which fields to update. If the mask is not present, all fields will be updated. This is a comma-separated list of fully qualified names of fields. Example: |
Response body
If successful, the response body contains an instance of AnswerFeedback
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/dialogflow
For more information, see the Authentication Overview.