Update User API
This API lets you update the details of a user.
Update User API
PUT
https://api.roam.ai/v1/api/user/
Headers
Request Body
{
"status": true,
"msg": "Success.",
"code": 200,
"data": {
"id": "60b90dd651efb070950db2e9",
"account_id": "60af304c51efb03cdde65042",
"app_id": "60af306a8ce7db2392eb7a75_1",
"device_token": "d1_nRSCRgMI:APA91bFgVQ8BJqVJsuGF7CbFDfyiMSLgL6c0mW_GHVfeBcjEraRA6lJfreGqKSMzsvNE7ARJn-8V8_mbyL_Bwyy0ScKtjauarg84MyZlgRahszRVPr69-FgdvSx5xi699YGcXz8nfTnb",
"device_uuid": null,
"description": "ROAM111",
"brand": "xiaomi",
"model": "Redmi Note 7",
"group_id": null,
"os_version": "28",
"sdk_version": "3.1.6",
"device_arn": "arn:aws:sns:us-east-1:218937252071:endpoint/GCM/app_60af306a8ce7db2392eb7a75_1_a678d41d-a66f-442b-90e5-1564b6c88c34/5b73758f-cc96-373a-a2dc-400d8c8f5685",
"geofence_events": false,
"motion_events": false,
"location_events": false,
"trips_events": false,
"nearby_events": false,
"location_listener": false,
"event_listener": false,
"metadata": {
"name": "ROAM123"
},
"is_deleted": false,
"created_at": "2021-06-03T17:13:58.830",
"updated_at": "2021-07-02T07:44:38.781"
}
}
Sample Request
curl --location --request PUT 'https://api.roam.ai/v1/api/user/' \
--header 'Content-Type: application/json' \
--header 'APi-Key: 63598c5b3aa84f14914013709402bbc9' \
--data-raw '{
"user_id": "60b90dd651efb070950db2e0",
"description": "ROAM111",
"metadata" :{"name": "ROAM123" },
"geofence_events": false,
"motion_events": false,
"location_events": false,
"trips_events": false,
"nearby_events": false,
"location_listener": false,
"event_listener": false
}'
Last updated