Device App User Update
The
device app user updatedevice_app_user_update endpoint allowsmobile applications and client systemsyou to update userprofileinformation andsettings.device details in the GATE system. This endpoint iscommonly usedessential forprofilemaintainingmanagement,currentpreferenceuserupdates,profiles, device associations, anduserauthenticationdatacredentialssynchronizationinacrossmobiledevices.and IoT applications.
Base URL: https://gate.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Overview
The Device App User Updatedevice_app_user_update API category provides functionality forto updatingupdate comprehensive user and device information within the GATE platform.system. This endpoint is designed specifically for mobile applications and client software that need to modify user profiles, preferences, and account settings.
Common scenarios include updating user profiles when users change their personal information, synchronizing user preferences across multiple devices, and maintaining up-to-date user data for personalized experiences. The endpoint accepts user data in a flexible format, allowing applications to update various user attributes in a single request.
This API is particularly useful for mobile applications that need to handlemaintain offlinesynchronized profileuser editsprofiles across multiple devices and syncplatforms.
Key whenFeatures:
Common Integration Scenarios:
The endpoint accepts a comprehensive data payload that can include device identifiers, user credentials, and classification information, allowing for adminflexible interfacesupdates thatbased manageon useryour accountsapplication's acrossspecific an organization.needs.
Endpoints
POST /device_app_user_update/
Description: Updates user information including profile details, preferences, and accountassociated settings.device details in the GATE system. This endpoint acceptsallows you to modify user datacredentials, device identifiers, external system mappings, and appliesuser classifications in a single request. It's designed for scenarios where user or device information has changed and needs to be synchronized across the updates to the specified user account, returning confirmation of the changes made.system.
Use Cases:
Mobile appUser profileeditingupdateswhereafterusers update their name, email,authentication orpreferencesregistration changes
Full URL Example:
https://gate.zequenze.com/api/v1/device_app_user_update/
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| data | string | body | Yes | JSON string containing user and device information to |
Request Body Structure:
The data parameter should contain a JSON stringobject with the following structure:optional fields:
{cURL Example:
curl -X POST "https://gate.zequenze.com/api/v1/device_app_user_update/" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"data": "{
\"user_id\number\": \"12345\+1234567890\",
\"profile\": {\"first_name\generic_id\": \"John\com.example.app.user123\",
\"last_name\imei\": \"Smith\123456789012345\",
\"email\imsi\": \"john.smith@example.com\310120123456789\"},
\"preferences\": {\"notifications_enabled\": true, \"language\iccid\": \"en\12345678901234567890\"},
\"username\": \"john_doe\",
\"password\": \"hashed_password_string\",
\"user_external_id\": \"ext_user_456\",
\"user_class\": \"premium\"
}"
}'
Example Response:Response (201 Created):
{
"success": true,
"message"number": "User information updated successfully"+1234567890",
"user_id"generic_id": "12345"com.example.app.user123",
"updated_fields"imei": [
"profile.first_name"123456789012345",
"profile.last_name"imsi": "310120123456789",
"profile.email"iccid": "12345678901234567890",
"preferences.notifications_enabled"username": "john_doe",
"preferences.language"password": ]"hashed_password_string",
"updated_at"user_external_id": "2024-01-15T14:30:22Z"ext_user_456",
"version"user_class": 15"premium"
}
Response Codes:
| Status | Description |
|---|---|
| 201 | Created - User information successfully updated |
| 400 | Bad Request - Invalid data format or missing required fields |
| 401 | Unauthorized - Invalid or missing authentication token |
Common Use Cases
Use Case 1: Mobile App User Profile UpdatesUpdate
When usersa edituser updates their profile information in a mobile app, use this endpoint to sync the changes to the server. Include the user ID and only the fields that have been modified to minimize data transfer.
Use Case 2: Settings Synchronization
For applications that work across multiple devices,application, use this endpoint to synchronize userthe preferenceschanges with the GATE system, including updated credentials and settings.device Includeinformation.
Use Case 2: Device Replacement Scenario
When a user gets a new device informationor toSIM trackcard, whichupdate the device initiatedidentifiers (IMEI, IMSI, ICCID) while maintaining the update.same user account and external system mappings.
Use Case 3: Administrative User ManagementClass Upgrade
AdminWhen interfacesa canuser useupgrades thistheir endpointservice plan or subscription tier, update their user_class field to updatereflect userthe informationnew inlevel bulkof orservice makeand corrections to user profiles. Include comprehensive user data to ensure all necessary fields are updated.permissions.
Use Case 4: External System Integration
When integrating with external HR systems or identity providers, use this endpoint to keepSynchronize user information synchronizedbetween acrossGATE platforms.and external CRM or user management systems using the user_external_id field to maintain consistent user records.
Use Case 5: Bulk User Maintenance
Perform maintenance operations on user accounts, such as updating authentication credentials or device associations during system migrations or security updates.
Best Practices
-
ValidateDataClient-SideValidation::Always validate user input before sending to theAPIAPI,toespeciallyreducefor422deviceerrorsidentifiers like IMEI andimproveIMSIuserwhichexperiencehave specific format requirements. -
SendPasswordOnlySecurity:ModifiedEnsureFieldspasswords are properly hashed before transmission. Never send plain text passwords through the API.
Partial Updates:: To optimize performance,You only need to include fields that haveare actually changedchanging in the updatedata requestpayload. The API supports partial updates, so omit unchanged fields to reduce payload size.
HandleError OfflineHandling: Scenarios:Implement Storerobust failederror updateshandling locallyfor validation errors (422) and retryauthentication whenfailures connectivity(401). isParse restored,error using the version fieldresponses to preventprovide conflictsmeaningful feedback to users.
Rate Limiting: Be mindful of API rate limits when performing bulk updates. Implement Properappropriate Errordelays Handling:or Displaybatching meaningfulstrategies errorfor messageslarge-scale tooperations.
RateData LimitingConsistency:: ImplementWhen client-sideupdating ratedevice limitingidentifiers, ensure all related fields (IMEI, IMSI, ICCID) are consistent and belong to avoid overwhelming the APIsame withphysical rapiddevice successiveor updatesSIM card.
DataExternal PrivacyID Mapping:: Ensure sensitive user information is properly encrypted during transmission and follow applicable privacy regulations
Logging and Monitoring: Log all update conflictsoperations for audit trails and implement monitoring to track successful updates and identify patterns in failures.