---
title: "Update user activity timestamps"
method: PATCH
path: "/api/v1/users/{userId}/activity"
tags: ["users"]
---

# Update user activity timestamps

`PATCH /api/v1/users/{userId}/activity`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/users/{userId}/activity`
- Auth: HTTP bearer

Update user activity timestamps

## Path parameters

- `userId` string, required

## Request body

- object
  - `lastLogin` number: Last login timestamp (ms)
  - `lastSeen` number: Last seen timestamp (ms)
  - `lastServer` number: Last server ID

## Response `200`

Default Response

- object
  - `success` true, required
  - `data` object, required
    - `message` string
  - `meta` object, required
    - `timestamp` number, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/farmersonly/apis/farmersonly-club-api.md) - [All operations](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/llms.txt) - [OpenAPI document](https://skmtc.dev/farmersonly/apis/farmersonly-club-api/revisions/b4fa9123ba90?raw)
