# \_setClockoutTime

Sets the Clock-out time for a User Clock-in

### Parameters

#### id

The ID of the User Clock-in you're modifying the Clock-out time of

#### time

An integer variable (epoch time format) used to set the Clock-out time of the User Clock-in

### Example

```
FM_api('UserClockin_setClockoutTime',[
  'id'=>'30020',
  'time'=>'1687885200'
  ]
);
```

### Results

#### On Success

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

#### On Failure

If the "id" parameter is missing or has a value less than 1

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

If the "id" parameter does not match the ID of any existing User Clock-in

```
{"error":"clockin does not exist"}
```
