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

# \_setClockinTime

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

### Parameters

#### id

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

#### time

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

### Example

```
FM_api('UserClockin_setClockinTime',[
  'id'=>'30020',
  'time'=>'1688376600'
  ]
);
```

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