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

# \_setPrivacy

Set the Privacy of the Task.

### Parameters

#### id

The ID of the Task.

#### privacy

The Privacy setting you wish to apply to the task. Public - 1, Private - 0.

### Example

```
FM_api('Task_setPrivacy', ['id' => '123', 'privacy' => '1']);
```

### Result

#### On Success

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