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

# \_setArea

Sets the Area of a Customer.

### Parameters

#### id

The ID of the Customer.

#### area\_id

The ID of the Area to be set to the Customer.

### Example

```
FM_api('Customer_setArea',[
  'id' => '712687',
  'area_id' => '90099'
]);
```

### Result

#### On Success

```
{"ok":"1"}
```

If the Customer is already set to the requested Area's ID:

```
['ok":"1", "msg":"no change needed"}
```

#### On Failure

If the "id" parameter is not given a value or has a value less than 1:

```
{"error:":missing or invalid parameter: id"}
```

If the "id" parameter value does not match an existing Customer ID:

```
{"error":"customer does not exist"}
```
