Update a specific user's information
Request
Add the parameter Authorization
to Headers Example:Authorization: ********************
Add parameter in header x-api-key
Example:x-api-key: ********************
or
Body Params application/jsonRequired
{
"name": "string",
"phone": 0,
"email": "string",
"type": "user",
"isDeliveryCoordinator": true,
"deliveryStatus": "online"
}
Responses
application/json
User updated successfully
{
"status": "success",
"message": "User updated successfully",
"data": {
"user": {
"_id": "64f1a2b3c4d5e6f7890a1234",
"name": "John Doe",
"email": "john@example.com",
"isEmailVerified": true,
"phone": 1234567890,
"isPhoneVerified": true,
"type": "user",
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
}
}
}
Modified at 2026-04-08 13:49:39