> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/location/_edit.md).

# \_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}
```
