PUT /api/v1/student/{studentId}/profile

Update profile information for a specific student

Path parameters

  • studentId string Required

    Unique identifier of the student

application/json

Body Required

  • fullName string

    Full name

  • phone string

    Phone number

Responses

  • 200 application/json

    Student profile updated successfully

    Hide response attributes Show response attributes object
    • message string Required

      Success message

    • success boolean Required

      Success status

    • student object Required

      Updated student data

      Hide student attributes Show student attributes object
      • id string Required

        Student ID

      • Registration_number string Required

        Registration number

      • user object Required

        User information

        Hide user attributes Show user attributes object
        • id string Required

          User ID

        • email string Required

          Email address

        • role string Required

          User role

          Values are STUDENT, LECTURER, or ADMIN.

        • status string Required

          User status

          Values are ACTIVE, SUSPENDED, or DELETED.

        • profile object

          User profile

          Hide profile attributes Show profile attributes object
          • id string Required

            Profile ID

          • fullName string Required

            Full name

          • phone string

            Phone number

          • createdAt string Required

            Created timestamp

          • updatedAt string Required

            Updated timestamp

        • createdAt string Required

          Created timestamp

        • updatedAt string Required

          Updated timestamp

      • department object Required

        Department information

        Hide department attributes Show department attributes object
        • id string Required

          Department ID

        • name string Required

          Department name

        • instituteId string Required

          Institute ID

      • institute object Required

        Institute information

        Hide institute attributes Show institute attributes object
        • id string Required

          Institute ID

        • name string Required

          Institute name

        • code string Required

          Institute code

        • type string Required

          Institute type

      • cohort object Required

        Cohort information

        Hide cohort attributes Show cohort attributes object
        • id string Required

          Cohort ID

        • name string Required

          Cohort name

        • departmentId string Required

          Department ID

        • currentSemesterId string Required

          Current semester ID

      • createdAt string Required

        Created timestamp

      • updatedAt string Required

        Updated timestamp

  • 400

    Invalid profile data

  • 404

    Student not found

PUT /api/v1/student/{studentId}/profile
curl \
 --request PUT 'http://localhost:3500/api/v1/student/uuid-string/profile' \
 --header "Content-Type: application/json" \
 --data '{"fullName":"John Doe Updated","phone":"+1234567890"}'
Request examples
{
  "fullName": "John Doe Updated",
  "phone": "+1234567890"
}
Response examples (200)
{
  "message": "string",
  "success": true,
  "student": {
    "id": "uuid-string",
    "Registration_number": "CS/2023/001",
    "user": {
      "id": "uuid-string",
      "email": "student@example.com",
      "role": "STUDENT",
      "status": "ACTIVE",
      "profile": {
        "id": "uuid-string",
        "fullName": "John Doe",
        "phone": "+1234567890",
        "createdAt": "2025-09-25T10:30:00.000Z",
        "updatedAt": "2025-09-25T10:30:00.000Z"
      },
      "createdAt": "2025-09-25T10:30:00.000Z",
      "updatedAt": "2025-09-25T10:30:00.000Z"
    },
    "department": {
      "id": "uuid-string",
      "name": "Computer Science",
      "instituteId": "uuid-string"
    },
    "institute": {
      "id": "uuid-string",
      "name": "University of Technology",
      "code": "UOT",
      "type": "University"
    },
    "cohort": {
      "id": "uuid-string",
      "name": "CS 2023 Batch",
      "departmentId": "uuid-string",
      "currentSemesterId": "uuid-string"
    },
    "createdAt": "2025-09-25T10:30:00.000Z",
    "updatedAt": "2025-09-25T10:30:00.000Z"
  }
}