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

# \_setActive

Set the Status of the Job Recurrence.

### Parameters

#### id

The ID of the Job Recurrence.

#### val

Status to be set for the Recurrence (Active - 1, Inactive - 0).

### Example

```
FM_api('JobRecurrence_setActive', ['id' => '123', 'val' => '1']);
```

### Result

#### On Success

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