# \_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"}}
```


---

# 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/_setedate.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.
