# Register or update a device for push notifications Endpoint: PUT /api/v1/devices Version: 1.0 Security: header ## Request fields (application/json): - `deviceId` (string, required) - `fcmToken` (string, required) - `endpoint` (string, required) - `keys` (object, required) - `keys.p256dh` (string, required) - `keys.auth` (string, required) - `platform` (string, required) - `device` (string,null) ## Response 401 fields (application/json): - `errorCode` (string, required) Error code - `message` (string, required) Error message - `docUrl` (string) Link to documentation ## Response 400 fields