Core
  1. Students
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
    • Retrieve an Existing Staff
    • Create a Staff
    • Delete an Existing Staff
    • Update an Existing Staff
  • Teachers
    • Get All Teachers
    • Retrieve an Existing Teacher
    • Create a Teacher
    • Delete an Existing Teacher
    • Update an Existing Teacher
  • Students
    • Get All Students
      GET
    • Retrieve an Existing Student
      GET
    • Create a Student
      POST
    • Delete an Existing Student
      DELETE
    • Update an Existing Student
      PATCH
    • Import Bulk Students
      POST
  • 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. Students

Update an Existing Student

Designing
PATCH
/students/{student_id}
To update a Student information.

Request

Path Params

Body Params application/json

Example
{
    "nisn": "0011730411",
    "nipd": "12345",
    "nik": "9067521303249929",
    "skhun": "IX-A-12345-2021-123",
    "birthCertificateNumber": "3578-LU-28112012-0018",
    "familyCardNumber": "5014552626504981",
    "father": {
        "name": "Adinata Adinata Rajata",
        "nik": "0249962004656954",
        "birthPlace": "Melonguane",
        "birthDate": "2025-10-19T09:53:53.162Z",
        "education": "S1",
        "phoneNumber": "6281234567890",
        "occupation": "Dynamic Usability Specialist",
        "income": "Rp. 5,000,000 - Rp. 20,000,000",
        "specialNeeds": [
            "GRAHITA RINGAN"
        ]
    },
    "mother": {
        "name": "Prita Prita Mayasari",
        "nik": "0235179715402999",
        "birthPlace": "Pare-Pare",
        "birthDate": "2025-10-19T09:53:53.163Z",
        "education": "S1",
        "phoneNumber": "6281234567890",
        "occupation": "National Program Engineer",
        "income": "Tidak Berpenghasilan",
        "specialNeeds": [
            "GRAHITA RINGAN",
            "NETRA",
            "NETRA"
        ]
    },
    "guardian": null,
    "residenceType": "WALI",
    "transportationMode": "SEPEDA MOTOR",
    "height": 165,
    "weight": 53,
    "headCircumference": 61,
    "distance": 2520529796164826,
    "travelTime": 71,
    "siblings": "5",
    "numberOfSiblings": "2",
    "phoneNumber": "6281234567890",
    "religion": "BUDHA",
    "address": {
        "street": "Jl. Beruang",
        "rt": "059",
        "rw": "052",
        "subDistrict": "Sempaja Utara",
        "district": "Samarinda Utara",
        "city": "Samarinda",
        "province": "Kalimantan Timur",
        "country": "ID",
        "postalCode": "75124",
        "location": {
            "type": "POINT",
            "coordinates": [
                -10695538.099454895,
                88732580.8634535
            ]
        }
    },
    "birthDate": "2025-10-19T09:53:53.167Z",
    "birthPlace": "Rangkasbitung",
    "birthOrder": 1,
    "bloodType": null,
    "gender": null,
    "landline": "0541123456",
    "specialNeeds": [
        "GRAHITA RINGAN"
    ],
    "hobby": "Membaca"
}

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/students/c1f172b62bb946dae3e5dc3f' \
--header 'Content-Type: application/json' \
--data-raw '{
    "nisn": "0011730411",
    "nipd": "12345",
    "nik": "9067521303249929",
    "skhun": "IX-A-12345-2021-123",
    "birthCertificateNumber": "3578-LU-28112012-0018",
    "familyCardNumber": "5014552626504981",
    "father": {
        "name": "Adinata Adinata Rajata",
        "nik": "0249962004656954",
        "birthPlace": "Melonguane",
        "birthDate": "2025-10-19T09:53:53.162Z",
        "education": "S1",
        "phoneNumber": "6281234567890",
        "occupation": "Dynamic Usability Specialist",
        "income": "Rp. 5,000,000 - Rp. 20,000,000",
        "specialNeeds": [
            "GRAHITA RINGAN"
        ]
    },
    "mother": {
        "name": "Prita Prita Mayasari",
        "nik": "0235179715402999",
        "birthPlace": "Pare-Pare",
        "birthDate": "2025-10-19T09:53:53.163Z",
        "education": "S1",
        "phoneNumber": "6281234567890",
        "occupation": "National Program Engineer",
        "income": "Tidak Berpenghasilan",
        "specialNeeds": [
            "GRAHITA RINGAN",
            "NETRA",
            "NETRA"
        ]
    },
    "guardian": null,
    "residenceType": "WALI",
    "transportationMode": "SEPEDA MOTOR",
    "height": 165,
    "weight": 53,
    "headCircumference": 61,
    "distance": 2520529796164826,
    "travelTime": 71,
    "siblings": "5",
    "numberOfSiblings": "2",
    "phoneNumber": "6281234567890",
    "religion": "BUDHA",
    "address": {
        "street": "Jl. Beruang",
        "rt": "059",
        "rw": "052",
        "subDistrict": "Sempaja Utara",
        "district": "Samarinda Utara",
        "city": "Samarinda",
        "province": "Kalimantan Timur",
        "country": "ID",
        "postalCode": "75124",
        "location": {
            "type": "POINT",
            "coordinates": [
                -10695538.099454895,
                88732580.8634535
            ]
        }
    },
    "birthDate": "2025-10-19T09:53:53.167Z",
    "birthPlace": "Rangkasbitung",
    "birthOrder": 1,
    "bloodType": null,
    "gender": null,
    "landline": "0541123456",
    "specialNeeds": [
        "GRAHITA RINGAN"
    ],
    "hobby": "Membaca"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "success": true,
    "message": "OK.",
    "meta": {},
    "errors": [],
    "result": {
        "id": "93948db9d090bc4cc8b1fdf3",
        "nisn": "0011730411",
        "nipd": "12345",
        "nik": "4316078227639335",
        "skhun": "IX-A-12345-2021-123",
        "birthCertificateNumber": "3578-LU-28112012-0018",
        "familyCardNumber": "1624455090234399",
        "father": {
            "name": "Cakrabuana Cakrabuana Winarno",
            "nik": "9852261979651975",
            "birthPlace": "Anyer",
            "birthDate": "2025-10-19T09:54:56.905Z",
            "education": "S1",
            "phoneNumber": "6281234567890",
            "occupation": "Future Creative Planner",
            "income": "Rp. 5,000,000 - Rp. 20,000,000",
            "specialNeeds": [
                "RUNGU"
            ]
        },
        "mother": {
            "name": "Mulyani Lalita",
            "nik": "2764963243256366",
            "birthPlace": "Wonosobo",
            "birthDate": "2025-10-19T09:54:56.906Z",
            "education": "S1",
            "phoneNumber": "6281234567890",
            "occupation": "Global Marketing Assistant",
            "income": "Tidak Berpenghasilan",
            "specialNeeds": [
                "GRAHITA RINGAN",
                "NETRA"
            ]
        },
        "guardian": null,
        "residenceType": "WALI",
        "transportationMode": "MOBIL PRIBADI",
        "height": 181,
        "weight": 94,
        "headCircumference": 55,
        "distance": 2870397102482791,
        "travelTime": 77,
        "siblings": "0",
        "numberOfSiblings": "2",
        "phoneNumber": "6281234567890",
        "religion": "HINDU",
        "address": null,
        "birthDate": "2025-10-19T09:54:56.909Z",
        "birthPlace": "Masamba",
        "birthOrder": 1,
        "bloodType": "B",
        "gender": "FEMALE",
        "landline": "0541123456",
        "specialNeeds": [
            "NETRA"
        ],
        "hobby": "Membaca"
    }
}
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🔴500Server Error
Modified at 2025-11-10 01:08:01
Previous
Delete an Existing Student
Next
Import Bulk Students
Built with