Create or update a device token
Operation boundary
- Caller: Trusted backend only
- Scope: The token is persisted cluster-wide; for a Master device, the handling node starts closing old sessions after about 10 seconds.
- Success: A 200 response means the token write completed, not that old sessions are already closed.
POST
/user/tokenUpserts one UID/device token; default Gateway authentication requires later CONNECT credentials for the same UID and device category to match it.
Request Body
application/json
User, device, and token metadata to store.
TypeScript Definitions
Use the request body type in TypeScript.
Device-token update parameters.
Response Body
application/json
application/json
application/json
{ "status": 200}