If a Port Order preset is entered incorrectly and needs to be removed altogether, you can perform a ‘DELETE’ operation on the specified preset to remove it. Available presets are:
- cnam_id
- e911_id
- primary_route_id
- failover_route_id
Method
DELETE /portorders/:portorder_id/preset/:preset-type-
Response Format
On success, the HTTP status code in the response header is 200 OK and the body contains the updated version of the port order.
Example Request
DELETE /v2/portorders/42361/presets/cnam_id HTTP/1.1
Content-Type: application/json
Accept: application/json
Success
200 OK
{
"data": {
"attributes": {
"alias": "Port Order 6/12/2018",
"billing_address": {
"city": "Seattle",
"country": "US",
"state": "WA",
"street": "1218 3rd Ave",
"street2": null,
"zip": "98101"
},
"billing_name": "John Doe",
"billing_number": "",
"business_documents": [
{
"filename": "https://s3-us-west-2.amazonaws.com/port-order-docs/csr.pdf",
"status": "uploaded"
},
{
"filename": "https://s3-us-west-2.amazonaws.com/port-order-docs/bill.pdf",
"status": "failed"
}
],
"presets": {
"cnam_id": NULL,
"e911_id": 56,
"alias": "New Office",
"failover_route_id": 92832,
"primary_route_id": 88122
},
"comments": [],
"company": "Leather Inc.",
"cost": "7.5",
"desired_completion_date": "2018-07-12",
"enable_cnam_lookups": true,
"group_id": "38697",
"last_4_ssn": "",
"loa_details": {
"cc": "mbermudez+test@flowroute.com",
"email": "mbermudez@flowroute.com"
},
"numbers": [
"+12065013456"
],
"pin": "4321",
"provider": "Verizon",
"provider_account": "123ABC",
"status": "pending",
"status_updated_at": null,
"status_url": "https://ycx56aoy9j.execute-api.us-west-2.amazonaws.com/dev/message_to_slack",
"usage_type": "residential"
},
"id": "42361",
"links": {
"self": "https://api.flowroute.com/v2/portorders/42361"
},
"type": "portorder"
},
"links": {
"self": "https://api.flowroute.com/v2/portorders/42361"
}
}
}