> 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/customer/_settown.md).

# \_setTown

Sets the Town for a Customer address.

### Parameters

#### id

The ID of the Customer.

#### val

The town to be set.

### Example

```
FM_api('Customer_setTown', ['id' => '123', 'val' => 'Newry']);
```

### Result

#### On Success

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