The method accepts an `e911_id` as a path parameter which you can learn more about in the [API reference](https://developer.flowroute.com/api/e911s/v2.0/list-e911-record-details/).
The method accepts an `e911_id` as a path parameter which you can learn more about in the [API reference](https://developer.flowroute.com/api/e911s/v2.0/list-e911-record-details/).
@ -982,27 +982,38 @@ On success, the HTTP status code in the response header is `200 OK` and the resp
'type': 'e911'}}
'type': 'e911'}}
```
```
#### validate\_address()
#### validate\_address(label, first\_name, last\_name, street\_name, street\_number, city, state, country, zipcode)
The method accepts the different attributes of an E911 address —`label`, 'first\_name`, `last\_name`, `street\_name`, `street\_number`, `city`, `state`, `country`, and `zipcode`— as parameters which you can learn more about in the [API reference](https://developer.flowroute.com/api/e911s/v2.0/list-e911-record-details/). Note that this method doesn't accept the `address\_type` and `address\_type\_number` which are acceptable but not required E911 address attributes by the API.
The method accepts the different attributes of an E911 address as parameters: `label`, `first_name`, `last_name`, `street_name`, `street_number`, `city`, `state`, `country`, and `zipcode`. Learn more about the different E911 attributes in the [API reference](https://developer.flowroute.com/api/e911s/v2.0/list-e911-record-details/). Note that this method doesn't accept the `address\_type` and `address\_type\_number` which are acceptable but not required E911 address attributes by the API.
##### Example Request
##### Example Request
```python
```python
e911_id = None
print("\n--Validate an Address")
# If the user has any E911 records, pull one up
try:
for e in result['data']:
result = e911s_controller.validate_address(
e911_id = e['id']
label="Test Address",
break
first_name="Chris",
last_name="Smith",
if e911_id:
street_name="3rd Ave",
print("\n--Get Details for a specific E911 Record")
street_number="1182",
result = e911s_controller.get_e911(e911_id)
city="Seattle",
state="WA",
country="CA",
zipcode="98101")
pprint.pprint(result)
pprint.pprint(result)
except Exception as e:
print(str(e))
```
```
##### Example Response
##### Example Response
On success, the HTTP status code in the response header is `200 OK` and the response body contains a detailed e911 object in JSON format.
On success, the HTTP status code in the response header is `204 No Content` which means that the server successfully processed the request and is not returning any content. On error, a printable representation of the detailed API response is displayed.
```
--Validate an Address
HTTP response not OK.
{"errors":[{"detail":"Could not geocode this address. Please check the validity of your address.","id":"7fcfd1cd-486b-4159-8484-b710bd4bbab4","status":400,"title":"Client Error"}]}