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

# \_setAssignedTo

Assigns a user to a task.

### Parameters

#### id

The ID of the Task to assign the User to.

#### assigned\_to

The ID of the User to be assigned.

### Example

```
FM_api('Task_setAssignedTo', ['id' => '123', 'assigned_to' => '987']);
```

### Result

#### On Success

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