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

# \_setEDate

Set the Expiry Date of the Job Recurrence.

### Parameters

#### id

The ID of the Job Recurrence.

#### val

The Expiry date to be set for the Recurrence, yyyy-mm-dd.

### Example

```
FM_api('JobRecurrence_setEDate', [
    'id' => '123',
    'val' => '2019-10-28'
    ]
);
```

### Result

#### On Success

```
{"ok":1,"rec_update":{"ok":1}}
```

#### On Failure

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

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

If the "id" parameter does not match an existing Job Recurrence ID:\
(will include user ID and given rec id in returned text)

```
{"ok":1,"rec_update":{"error":"recurring appointment sequence 92447:123 does not exist or is inactive"}}
```
