Updates a specific HostedNumberOrder.
Updates a specific HostedNumberOrder.
Path parameters
-
The SID of the HostedNumberOrder resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^HR[0-9a-fA-F]{32}$
.
Body
-
Status of this resource. It can hold one of the values: 1. Twilio Processing 2. Received, 3. Pending LOA, 4. Carrier Processing, 5. Completed, 6. Action Required, 7. Failed. See the HostedNumberOrders Status Values section for more information on each of these statuses.
Values are
twilio-processing
,received
,pending-verification
,verified
,pending-loa
,carrier-processing
,testing
,completed
,failed
, oraction-required
. -
The number of seconds to wait before initiating the ownership verification call. Can be a value between 0 and 60, inclusive.
-
The numerical extension to dial when making the ownership verification call.
curl \
--request POST 'https://numbers.twilio.com/v2/HostedNumber/Orders/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Status=pending-verification&VerificationCallDelay=15&VerificationCallExtension=789'
{"Status"=>"pending-verification", "VerificationCallDelay"=>15, "VerificationCallExtension"=>"789"}
{
"sid": "HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://numbers.twilio.com/v2/HostedNumber/Orders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"email": "test@twilio.com",
"status": "pending-verification",
"cc_emails": [
"aaa@twilio.com",
"bbb@twilio.com"
],
"next_step": "",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"address_sid": "AD11111111111111111111111111111111",
"capabilities": {
"mms": true,
"sms": true,
"voice": false
},
"date_created": "2017-03-28T20:06:39Z",
"date_updated": "2017-03-28T20:06:39Z",
"phone_number": "+14153608311",
"contact_title": "contact_title_test",
"friendly_name": "friendly name",
"failure_reason": "",
"verification_code": "567890",
"verification_type": "phone-call",
"contact_phone_number": "+12344444444",
"signing_document_sid": "PX11111111111111111111111111111111",
"verification_attempts": 1,
"verification_call_sids": [],
"verification_call_delay": 15,
"bulk_hosting_request_sid": "BH11111111111111111111111111111111",
"incoming_phone_number_sid": "PN11111111111111111111111111111111",
"verification_call_extension": "789"
}