# \_edit

Edit a location.

### Parameters

#### id

The ID of the Location to be edited.

#### name

Name of the location.

#### lat

Latitude of the location.

#### lng

Longitude of the location.

#### customer\_id

Customer ID of the customer set to that location.

#### address

Locaction address.

### Example

```
FM_api('Location_edit', ['id' => '5', 'name' => 'New Location', 'lat' => '54.1819', 'lng' => '-6.3283', 'customer_id' => '7', 'address' => '10 test town'])
```

### Result

#### On Success

```
{'ok':1}
```
