Set DateTime
Update the user’s datetime setting and notify subscribed apps.Endpoint
Request Body
The datetime must be in ISO 8601 format.
Response
Success (200):Implementation
- File:
packages/cloud/src/routes/user-data.routes.ts:17-70 - Authentication: JWT token validation using
AUGMENTOS_AUTH_JWT_SECRET - Side Effects: Sends CUSTOM_MESSAGE to all apps subscribed to custom messages
Custom Message Format
Apps subscribed toCUSTOM_MESSAGE stream will receive:
Usage Notes
- The coreToken is passed in the request body rather than as a header
- This endpoint stores the datetime in the user’s session as
userDatetime - Only apps that have subscribed to the
CUSTOM_MESSAGEstream type will receive the update - The datetime is used for display purposes on the glasses
Error Codes
| Code | Description |
|---|---|
| 400 | Missing or invalid parameters |
| 401 | Invalid or expired core token |
| 404 | User session not found - user must have active WebSocket connection |