To update a user information.
Request
Body Params application/json
{
"name": "Fauzan Gifari",
"email": "12345@school.edu",
"emailVerified": false,
"secondaryEmail": "fauzan@gmail.com",
"image": "1069x1016/028aff/d61527.jpeg",
"active": false
}
Request Code Samples
curl --location --request PATCH 'https://sims.sman1samarinda.sch.id/api/users/c1f172b62bb946dae3e5dc3f' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Fauzan Gifari",
"email": "12345@school.edu",
"emailVerified": false,
"secondaryEmail": "fauzan@gmail.com",
"image": "1069x1016/028aff/d61527.jpeg",
"active": false
}'
Responses
application/json {
"success": true,
"message": "OK.",
"meta": {},
"errors": [],
"result": {
"id": "b9aef56dde21770d022de01e",
"name": "Fauzan Gifari",
"email": "12345@school.edu",
"emailVerified": false,
"secondaryEmail": "fauzan@gmail.com",
"image": "933x769/9a7f02/e0229e.gif",
"active": false,
"createdAt": "2025-10-07T10:19:42.105Z",
"updatedAt": "2025-10-07T10:19:42.107Z"
}
}
Modified at 2026-01-29 08:27:04