Core
  1. Users
Core
  • Introduction
    • What is Core
    • HTTP Statuses
    • Request
    • Responses
    • Meta
    • Limit & Pagination
    • Query Parameters
  • Quick Start
    • Letters
  • Auth
    • Sign In with Email and Password
      POST
    • Get the Current Session
      GET
    • Sign Out the Current User
      POST
  • Users
    • Get All Users
      GET
    • Create a User
      POST
    • Retrieve an Existing User
      GET
    • Delete an Existing User
      DELETE
    • Update an Existing User
      PATCH
    • Get Current User
      GET
    • Update Current User
      PATCH
    • Get Current User Devices
      GET
    • Retrieve User Devices by User ID
      GET
    • Update Own Profile Image
      POST
    • Update User Image
      POST
    • Reset User Password
      PATCH
    • Get User Login History
      GET
  • Staff
    • Get All Staff
      GET
    • Retrieve an Existing Staff
      GET
    • Create a Staff
      POST
    • Delete an Existing Staff
      DELETE
    • Update an Existing Staff
      PATCH
  • Teachers
    • Get All Teachers
    • Retrieve an Existing Teacher
    • Create a Teacher
    • Delete an Existing Teacher
    • Update an Existing Teacher
  • Students
    • Get All Students
    • Retrieve an Existing Student
    • Create a Student
    • Delete an Existing Student
    • Update an Existing Student
    • Import Bulk Students
  • Roles
    • Get All Roles
    • Create a Role
    • Retrieve an Existing Role
    • Update an Existing Role
    • Delete an Existing Role
    • Get All Eligible Users for Role
    • Get All Members of Role
    • Add Bulk Member to Role
    • Remove Bulk Members from Role
  • Classes
    • Get All Classes
    • Create a Class
    • Delete an Existing Student Copy
    • Create a Class Copy
  • Statistics
    • Teachers
      • Get Teacher Gender Stats
      • Get Teacher Religion Distribution
      • Get Teacher Employment Stats
      • Get Teacher Age Stats
    • Students
      • Get Student Gender Stats
      • Get Student Religion Distribution
      • Get Student Weight Stats
      • Get Student Height Stats
      • Get Student Age Stats
      • Get Student Transportation Stats
      • Get Student Class Stats
    • Staffs
      • Get Staffs Gender Stats
      • Get Staffs Religion Distribution
      • Get Staffs Age Stats
      • Get Staffs Employment Stats
    • Users
      • Retrieve User Summary
    • Get All Stats
  • Letters
    • Get All Letters
    • Retrieve an Existing Letter
    • Create a Letter
    • List User Letter
    • List Current User Letter
    • List Recipients
  • Letter Actions
    • Initiate a Letter Action
  • Files
    • Create a Presigned URL
  • Schemas
    • Schemas
      • Letter
        • LetterHistory
        • LetterStatus
        • LetterType
      • User
        • UserProfile
      • Address
      • Meta
      • Base
      • bloodType
      • Religion
      • Gender
      • ParentInfo
      • Error
      • GenderStats
      • ReligionDistribution
      • WeightStats
      • HeightStats
      • AgeStats
      • TransportationStats
      • ClassStats
      • EducationHistoryObject
      • EmploymentStats
      • Location
      • EconomyStats
      • Actor
    • Model
      • User
      • Teacher
      • Staff
      • Student
      • Letter
      • Class
      • Roles
    • LoginHistory
  1. Users

Update Current User

Developing
PATCH
/users/me
Updates the authenticated user's information along with their associated profile (student, teacher, or staff).

Request

Body Params application/json

Example
{
    "user": {
        "id": "string",
        "name": "string",
        "email": "string",
        "emailVerified": true,
        "secondaryEmail": "string",
        "image": "string",
        "active": true,
        "createdAt": "2019-08-24T14:15:22.123Z",
        "updatedAt": "2019-08-24T14:15:22.123Z"
    },
    "profile": {
        "id": "string",
        "userId": "string",
        "nisn": "string",
        "nipd": "string",
        "nik": "string",
        "skhun": "string",
        "birthCertificateNumber": "string",
        "familyCardNumber": "string",
        "father": {
            "name": "string",
            "nik": "string",
            "birthPlace": "string",
            "birthDate": "string",
            "education": "string",
            "phone": "string",
            "occupation": "string",
            "income": "string",
            "specialNeeds": [
                "string"
            ]
        },
        "mother": {
            "name": "string",
            "nik": "string",
            "birthPlace": "string",
            "birthDate": "string",
            "education": "string",
            "phone": "string",
            "occupation": "string",
            "income": "string",
            "specialNeeds": [
                "string"
            ]
        },
        "guardian": {
            "name": "string",
            "nik": "string",
            "birthPlace": "string",
            "birthDate": "string",
            "education": "string",
            "phone": "string",
            "occupation": "string",
            "income": "string",
            "specialNeeds": [
                "string"
            ]
        },
        "residenceType": "string",
        "transportationMode": "string",
        "height": 0,
        "weight": 0,
        "headCircumference": 0,
        "distance": 0,
        "travelTime": 0,
        "siblings": 0,
        "numberOfSiblings": 0,
        "phone": "string",
        "religion": "ISLAM",
        "address": {
            "street": "string",
            "rt": "string",
            "rw": "string",
            "subDistrict": "string",
            "district": "string",
            "city": "string",
            "province": "string",
            "country": "string",
            "postalCode": "string",
            "location": {
                "type": "POINT",
                "coordinates": [
                    0,
                    0
                ]
            }
        },
        "birthDate": "2019-08-24T14:15:22.123Z",
        "birthPlace": "string",
        "birthOrder": 0,
        "bloodType": "A",
        "gender": "MALE",
        "landline": "string",
        "hobby": "string",
        "dream": "string",
        "specialNeeds": [
            "string"
        ]
    },
    "type": "STUDENT"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://sims.sman1samarinda.sch.id/api/users/me' \
--header 'Content-Type: application/json' \
--data-raw '{
    "user": {
        "id": "string",
        "name": "string",
        "email": "string",
        "emailVerified": true,
        "secondaryEmail": "string",
        "image": "string",
        "active": true,
        "createdAt": "2019-08-24T14:15:22.123Z",
        "updatedAt": "2019-08-24T14:15:22.123Z"
    },
    "profile": {
        "id": "string",
        "userId": "string",
        "nisn": "string",
        "nipd": "string",
        "nik": "string",
        "skhun": "string",
        "birthCertificateNumber": "string",
        "familyCardNumber": "string",
        "father": {
            "name": "string",
            "nik": "string",
            "birthPlace": "string",
            "birthDate": "string",
            "education": "string",
            "phone": "string",
            "occupation": "string",
            "income": "string",
            "specialNeeds": [
                "string"
            ]
        },
        "mother": {
            "name": "string",
            "nik": "string",
            "birthPlace": "string",
            "birthDate": "string",
            "education": "string",
            "phone": "string",
            "occupation": "string",
            "income": "string",
            "specialNeeds": [
                "string"
            ]
        },
        "guardian": {
            "name": "string",
            "nik": "string",
            "birthPlace": "string",
            "birthDate": "string",
            "education": "string",
            "phone": "string",
            "occupation": "string",
            "income": "string",
            "specialNeeds": [
                "string"
            ]
        },
        "residenceType": "string",
        "transportationMode": "string",
        "height": 0,
        "weight": 0,
        "headCircumference": 0,
        "distance": 0,
        "travelTime": 0,
        "siblings": 0,
        "numberOfSiblings": 0,
        "phone": "string",
        "religion": "ISLAM",
        "address": {
            "street": "string",
            "rt": "string",
            "rw": "string",
            "subDistrict": "string",
            "district": "string",
            "city": "string",
            "province": "string",
            "country": "string",
            "postalCode": "string",
            "location": {
                "type": "POINT",
                "coordinates": [
                    0,
                    0
                ]
            }
        },
        "birthDate": "2019-08-24T14:15:22.123Z",
        "birthPlace": "string",
        "birthOrder": 0,
        "bloodType": "A",
        "gender": "MALE",
        "landline": "string",
        "hobby": "string",
        "dream": "string",
        "specialNeeds": [
            "string"
        ]
    },
    "type": "STUDENT"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "success": true,
    "message": "OK.",
    "meta": {},
    "errors": [],
    "result": {
        "user": {
            "id": "6910a2e6401649914337fa7d",
            "name": "udin",
            "email": "student11@sekolah.sch.id",
            "emailVerified": false,
            "secondaryEmail": "Ariel.Balistreri28@hotmail.com",
            "image": "988x1264/b79f5c/71dccb.jpg",
            "active": true,
            "createdAt": "2025-11-09T14:19:18.369Z",
            "updatedAt": "2026-01-12T06:31:32.960Z"
        },
        "profile": {
            "father": {
                "name": "Alejandro Wiza",
                "nik": "0003949093928439",
                "birthPlace": "Port Brady",
                "birthDate": "1971-03-16T01:35:47.841Z",
                "education": "S1",
                "phone": "628509282384",
                "occupation": "Petani",
                "income": "10000000",
                "specialNeeds": []
            },
            "mother": {
                "name": "Mattie Emard PhD",
                "nik": "1137576469375932",
                "birthPlace": "Lake Amiratown",
                "birthDate": "1967-12-31T16:55:47.788Z",
                "education": "S3",
                "phone": "628675856133",
                "occupation": "PNS",
                "income": "10000000",
                "specialNeeds": []
            },
            "guardian": {
                "name": "Amber Nienow",
                "nik": "1222670157445794",
                "birthPlace": "Lake Lucioushaven",
                "birthDate": "1955-07-03T06:02:28.132Z",
                "education": "S2",
                "phone": "628307053359",
                "occupation": "Guru",
                "income": "2000000",
                "specialNeeds": []
            },
            "address": {
                "street": "47061 Deckow Corners",
                "rt": "351",
                "rw": "773",
                "subDistrict": "Devon",
                "district": "Douglas County",
                "city": "Yogyakarta",
                "province": "DI Yogyakarta",
                "country": "Indonesia",
                "postalCode": "67223",
                "location": {
                    "type": "POINT",
                    "coordinates": [
                        110.4559975140552,
                        -7.698299473417422
                    ]
                }
            },
            "id": "6910a2ef401649914337fb13",
            "userId": "6910a2e6401649914337fa7d",
            "classId": null,
            "nisn": "3841479274",
            "nipd": "3476470399",
            "nik": "1943026181293748",
            "skhun": "3741711784",
            "birthCertificateNumber": "uF9n23C1kKVVrWGloYYo",
            "familyCardNumber": "8817295815145484",
            "residenceType": "Asrama",
            "transportationMode": "MOTORCYCLE_TAXI",
            "kpsPkh": false,
            "kip": false,
            "pip": true,
            "pipEligibilityReason": null,
            "pipRejectionReason": null,
            "height": 159,
            "weight": 65,
            "headCircumference": 51,
            "distance": 18,
            "travelTime": 40,
            "siblings": 2,
            "numberOfSiblings": 2,
            "phone": "+628021625039",
            "religion": "ISLAM",
            "birthDate": "2012-05-02T10:45:14.940Z",
            "birthPlace": "Johanncester",
            "birthOrder": 5,
            "bloodType": "A",
            "gender": "FEMALE",
            "landline": null,
            "specialNeeds": [],
            "hobby": "Musik",
            "dream": "Direct Integration Consultant"
        },
        "type": "STUDENT"
    }
}
Modified at 2026-01-29 08:28:20
Previous
Get Current User
Next
Get Current User Devices
Built with