# \_setSkipWeekends

Toggles whether Weekend days are skipped in a Recurring Job or not (e.g a Job which repeats every 3 days, except if it's on the weekend)

### Parameters

#### id

The ID of the Recurring Job

#### val

An integer parameter which toggles if Weekend days are skipped in the Recurrence settings:\
0 => False\
1 => True

#### skip-run

An optional parameter which if set, skips the process of creating new jobs to adapt to changes in the Recurrence settings, which can be time-consuming.

### Example

```
FM_api('JobRecurrence_setSkipWeekends',[
  'id'=>'429027',
  'val'=>'0',
  'skip-run'=>'1'
  ]
);
```

### Results

#### On Success

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

#### On Failure

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

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

If the "val" parameter is not set:

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fieldmotion.com/fieldmotion-api-docs/jobrecurrence/_setskipweekends.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
