Update a Verification status
Update a Verification status
Path parameters
-
The SID of the verification Service to update the resource from.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^VA[0-9a-fA-F]{32}$
. -
The Twilio-provided string that uniquely identifies the Verification resource to update.
POST
/v2/Services/{ServiceSid}/Verifications/{Sid}
curl \
--request POST 'https://verify.twilio.com/v2/Services/{ServiceSid}/Verifications/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Status=canceled'
Request examples
Update verification
{"Status"=>"canceled"}
{"Status"=>"approved"}
Response examples (200)
Update verification
{
"to": "+15017122661",
"sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sna": null,
"url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"payee": null,
"valid": false,
"amount": null,
"lookup": {},
"status": "canceled",
"channel": "sms",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"send_code_attempts": [
{
"time": "2015-07-30T20:00:00Z",
"channel": "SMS",
"attempt_sid": "VLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
}
{
"to": "+15017122661",
"sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sna": null,
"url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"payee": null,
"valid": true,
"amount": null,
"lookup": {},
"status": "approved",
"channel": "sms",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"send_code_attempts": [
{
"time": "2015-07-30T20:00:00Z",
"channel": "SMS",
"attempt_sid": "VLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
}