Device App User Update
Update user information for device applications.
Base URL: https://gate.zequenze.com/api/v1
Authentication: All endpoints require a Bearer token:
Authorization: Bearer <your-api-token>
Endpoints
POST /device_app_user_update/
Update user information for device applications. This endpoint allows you to modify user details such as profile information, preferences, or device-specific settings.
Parameters:
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
| data | string | body | Yes | JSON string containing user update information |
Example Request:
POST /api/v1/device_app_user_update/
Content-Type: application/json
Authorization: Bearer <your-api-token>
{
"data": "{\"user_id\": \"12345\", \"name\": \"John Doe\", \"email\": \"john.doe@example.com\", \"device_preferences\": {\"notifications_enabled\": true, \"theme\": \"dark\"}, \"last_active\": \"2024-01-15T10:30:00Z\"}"
}
Example Response:
{
"status": "success",
"message": "User information updated successfully",
"user_id": "12345",
"updated_fields": [
"name",
"email",
"device_preferences"
],
"timestamp": "2024-01-15T10:30:00Z"
}
| Status | Description |
|---|---|
| 201 | User information updated successfully |
| 400 | Bad request - Invalid data format or missing required fields |
| 401 | Unauthorized - Invalid or missing Bearer token |
| 404 | User not found |
| 422 | Validation error - Invalid user data |
Best Practices
-
Data Format: Ensure the
dataparameter contains a valid JSON string with properly escaped quotes - Validation: Validate user input on the client side before sending to reduce API errors
- Error Handling: Implement proper error handling for all possible response codes, especially validation errors
- Security: Never include sensitive information like passwords in update requests; use dedicated password change endpoints
- Rate Limiting: Be mindful of rate limits when updating multiple users in succession
- Idempotency: Multiple calls with the same data should not cause issues; the endpoint should handle duplicate updates gracefully