cURL
curl --request PUT \ --url https://api.example.com/api/users/:id \ --header 'Content-Type: application/json' \ --data ' { "firstName": "<string>", "lastName": "<string>", "phone": "<string>", "address": "<string>", "role": "<string>", "isActive": true, "supervisorId": "<string>" } '
{ "id": "<string>", "email": "<string>", "role": "<string>", "firstName": "<string>", "lastName": "<string>", "phone": "<string>", "profileImage": "<string>", "updatedAt": "<string>" }
curl -X PUT "https://api.millenium-potters.com/api/users/clx789ghi" \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "firstName": "Jane", "lastName": "Doe", "phone": "+234-800-5678" }'
curl -X PUT "https://api.millenium-potters.com/api/users/clx789ghi" \ -H "Authorization: Bearer YOUR_TOKEN" \ -F "firstName=Jane" \ -F "lastName=Doe" \ -F "profileImage=@/path/to/image.jpg"
{ "id": "clx789ghi", "email": "[email protected]", "role": "CREDIT_OFFICER", "firstName": "Jane", "lastName": "Doe", "phone": "+234-800-5678", "profileImage": "/uploads/profiles/profile-789.jpg", "updatedAt": "2026-03-11T11:00:00Z" }
401 Unauthorized
403 Forbidden
404 Not Found
400 Bad Request