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

# \_setCustomerId

Assigns a customer to a task.

### Parameters

#### id

The ID of the Task to assign the Customer to.

#### customer\_id

The ID of the Customer to be assigned.

### Example

```
FM_api('Task_setCustomerId', ['id' => '123', 'customer_id' => '10']);
```

### Result

#### On Success

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