Connect / Client / submit_contact_evaluation
submit_contact_evaluation#
- Connect.Client.submit_contact_evaluation(**kwargs)#
Submits a contact evaluation in the specified Amazon Connect instance. Answers included in the request are merged with existing answers for the given evaluation. If no answers or notes are passed, the evaluation is submitted with the existing answers and notes. You can delete an answer or note by passing an empty object (
{}
) to the question identifier.If a contact evaluation is already in submitted state, this operation will trigger a resubmission.
See also: AWS API Documentation
Request Syntax
response = client.submit_contact_evaluation( InstanceId='string', EvaluationId='string', Answers={ 'string': { 'Value': { 'StringValue': 'string', 'NumericValue': 123.0, 'NotApplicable': True|False } } }, Notes={ 'string': { 'Value': 'string' } } )
- Parameters:
InstanceId (string) –
[REQUIRED]
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
EvaluationId (string) –
[REQUIRED]
A unique identifier for the contact evaluation.
Answers (dict) –
A map of question identifiers to answer value.
(string) –
(dict) –
Information about input answers for a contact evaluation.
Value (dict) –
The value for an answer in a contact evaluation.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
StringValue
,NumericValue
,NotApplicable
.StringValue (string) –
The string value for an answer in a contact evaluation.
NumericValue (float) –
The numeric value for an answer in a contact evaluation.
NotApplicable (boolean) –
The flag to mark the question as not applicable.
Notes (dict) –
A map of question identifiers to note value.
(string) –
(dict) –
Information about notes for a contact evaluation.
Value (string) –
The note for an item (section or question) in a contact evaluation.
- Return type:
dict
- Returns:
Response Syntax
{ 'EvaluationId': 'string', 'EvaluationArn': 'string' }
Response Structure
(dict) –
EvaluationId (string) –
A unique identifier for the contact evaluation.
EvaluationArn (string) –
The Amazon Resource Name (ARN) for the contact evaluation resource.
Exceptions
Connect.Client.exceptions.InvalidParameterException
Connect.Client.exceptions.ResourceNotFoundException
Connect.Client.exceptions.ThrottlingException
Connect.Client.exceptions.InternalServiceException
Connect.Client.exceptions.ResourceConflictException