# \_setJobRef

Set a job reference on a Job.

### Parameters

#### id

The ID of the job.

#### value

The job reference.

### Example

```
FM_api('Job_setJobRef', ['id' => '123', 'value' => 'ExampleJobRef']);
```

### Result

#### On Success

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

If the Appointment already has the job reference:

```
{'ok':1,'warning':'value already set'}
```

#### On Failure

If no Job ID is provided:

```
{'error':'no ID provided'}
```

If no job reference is provided:

```
{'error':'no value provided'}
```

If the Job does not exist:

```
{'error':'appointment does not exist'}
```
