Update a draft sub request
PUT/origination/porting/draft_port_requests/:draft_port_request_id/sub_requests/:id
Updates the specified draft sub request with the values of the parameters passed. Any parameters not included in the request will be left unchanged.
Note: this is where you can set a default connection to pre-configure the numbers on a sub request. Connections can be created using the create connections endpoint
Request
Path Parameters
Draft Port Request id
Sub Request id
- application/json
Body
required
Updated sub request details
ISO 8601 formatted Date/Time requested for the FOC date
Person Name or Company name requesting the port
Name of person authorizing the port request
Billing phone number associated with these phone numbers
First line of billing address
Second line of billing address
City of billing address
Two character state abbreviation of billing address
Postal Code of billing address
ISO3166-1 alpha-2 country code of billing address
Identifies the connection to set on the numbers when the port completes
Identifies the messaging profile to set on the numbers when the port completes
porting_option
object
Options for the processing of numbers with your current service provider.
Possible values: [partial
, full
]
A port can be either 'full' or 'partial'. When type is 'full' the other attributes should be omitted.
Possible values: [keep
, disconnect
]
Remaining numbers can be either kept with their current service provider or disconnected. 'new_billing_telephone_number' is required when 'remaining_numbers_action' is 'keep'.
New billing telephone numbers for the remaining numbers. This will be set on your account with your current service provider and should be one of the numbers remaining on that account.
Options for the processing of numbers with your current service provider.
PIN/passcode for accounts that have wireless type numbers
The authorized person's account number with the current service provider
European tax identification number. Applicable only in the European Union
European business identification number. Applicable only in the European Union
Responses
200: Sub request
- application/json
401: Unauthorized
422: Unprocessable entity. Check message field in response for details.
Request samples
curl -L -X PUT 'https://api.telnyx.com/origination/porting/draft_port_requests/:draft_port_request_id/sub_requests/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"foc_date_requested_by_user": "string",
"person_or_company_name": "string",
"auth_person_name": "string",
"billing_phone_number": "string",
"street_address": "string",
"extended_address": "string",
"locality": "string",
"administrative_area": "string",
"postal_code": "string",
"country_code": "string",
"default_connection_id": "string",
"default_message_profile_id": "string",
"porting_option": {
"type": "partial",
"remaining_numbers_action": "keep",
"new_billing_phone_number": "string"
},
"pin_passcode": "string",
"account_number": "string",
"tax_identifier": "string",
"business_identifier": "string"
}'
Response samples
{
"id": "string",
"complete": true,
"phone_numbers": [
{
"phone_number": "string",
"svtype": "string",
"carrier_name": "string",
"coverage_category": "nanp_generic",
"sub_request_id": "string",
"portability_status": "pending"
}
],
"foc_date_requested_by_user": "string",
"phone_number_count": 0,
"underlying_carrier_names": [
"string"
],
"person_or_company_name": "string",
"auth_person_name": "string",
"billing_phone_number": "string",
"street_address": "string",
"extended_address": "string",
"locality": "string",
"administrative_area": "string",
"postal_code": "string",
"country_code": "string",
"created_at": "string",
"default_connection_id": "string",
"default_message_profile_id": "string",
"porting_option": {
"type": "partial",
"remaining_numbers_action": "keep",
"new_billing_phone_number": "string"
},
"pin_passcode": "string",
"account_number": "string",
"description": "string",
"tax_identifier": "string",
"business_identifier": "string"
}