Skip to main content

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):
Error (400):
Error (401):
Error (404):

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 to CUSTOM_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_MESSAGE stream type will receive the update
  • The datetime is used for display purposes on the glasses

Error Codes