Skip to main content

assessments

Creates, updates, deletes, gets or lists an assessments resource.

Overview​

Nameassessments
TypeResource
Idgoogle.recaptchaenterprise.assessments

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertprojectsIdCreates an Assessment of the likelihood an event is legitimate.
annotateexecprojectsId, assessmentsIdAnnotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.

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
assessmentsIdstring
projectsIdstring

INSERT examples​

Creates an Assessment of the likelihood an event is legitimate.

INSERT INTO google.recaptchaenterprise.assessments (
data__accountVerification,
data__assessmentEnvironment,
data__event,
data__privatePasswordLeakVerification,
projectsId
)
SELECT
'{{ accountVerification }}',
'{{ assessmentEnvironment }}',
'{{ event }}',
'{{ privatePasswordLeakVerification }}',
'{{ projectsId }}'
RETURNING
name,
accountDefenderAssessment,
accountVerification,
assessmentEnvironment,
event,
firewallPolicyAssessment,
fraudPreventionAssessment,
fraudSignals,
phoneFraudAssessment,
policyEvaluation,
privatePasswordLeakVerification,
riskAnalysis,
tokenProperties
;

Lifecycle Methods​

Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.

EXEC google.recaptchaenterprise.assessments.annotate
@projectsId='{{ projectsId }}' --required,
@assessmentsId='{{ assessmentsId }}' --required
@@json=
'{
"accountId": "{{ accountId }}",
"annotation": "{{ annotation }}",
"hashedAccountId": "{{ hashedAccountId }}",
"phoneAuthenticationEvent": "{{ phoneAuthenticationEvent }}",
"reasons": "{{ reasons }}",
"transactionEvent": "{{ transactionEvent }}"
}'
;