Đồng bộ tên Học viên (Synchronize Student Nicknames)

Mục lục

Giao diện này hỗ trợ đồng bộ hóa thông tin “Quản lý tên học sinh” từ hệ thống đồng bộ sang lớp học.

Mô tả giao diện:

  • Hỗ trợ đồng bộ hóa hàng loạt, với giới hạn 100 studentUid mỗi yêu cầu.
  • Chỉ đồng bộ biệt danh cho các lớp học chưa kết thúc.

This interface supports synchronizing the “Student Management – Name” from the backend to the class of the student.

Interface Description:

  • Supports batch synchronization, with a limit of 100 studentUids per request.
  • Only synchronizes class nicknames for courses that have not yet concluded.

URL

https://root_url/schooluser/modifyCourseStudentNickName

HTTP Request Methods

  • POST

Encoding Format

  • UTF-8

Request Parameters

Header Parameters

KeyRequiredTypeDescription
X-EEO-SIGNYesstringSignature; see here for generation rules
X-EEO-UIDYesstringInstitution SID
X-EEO-TSYesstringTimestamp

Body Parameters

KeyRequiredTypeDescriptionRules Description
studentUidsYesarrayRefresh only class nicknames for classes not yet concludedMaximum 100 studentUids

Response Parameters

Parameter NameTypeExample ValueMeaning
codeinteger1Error code
msgstring“Execution successful”Error message
dataarray[]Array of return information
└ studentUidinteger1445886Student UID
└ codeinteger1Error code
└ msgstring“Execution successful”Error message

Example

  • HTTP Request
POST /schooluser/modifyCourseStudentNickName HTTP/1.1 
Host: root_url
X-EEO-SIGN: 365456d0454e9b0dd793c47e65727e84
X-EEO-UID: 2669800
X-EEO-TS: 1732268163
Content-Type: application/json
Content-Length: 26

{
    "studentUids": [
        1445886
    ]
}
  • Shell cURL Simulation Request Command
curl -X POST \
     -H 'Host: root_url' \
     -H 'X-EEO-SIGN: 365456d0454e9b0dd793c47e65727e84' \
     -H 'X-EEO-UID: 2669800' \
     -H 'X-EEO-TS: 1732268163' \
     -H 'Content-Type: application/json' \
     -d '{"studentUids": [1445886]}' \
     'https://root_url/schooluser/modifyCourseStudentNickName'

Response Example (Example of json data packet returned when successful)

{
    "code": 1,
    "msg": "程序正常执行",
    "data": [
        {
            "studentUid": 1445886,
            "code": 1,
            "msg": "程序正常执行"
        }
    ]
}

Error Code Description

Error CodeDescription
101001001Business parameter error
101002005Signature exception
101002006Timestamp expired
101002008Timestamp does not exist
101004005Internal service call failed
110100067Failed to synchronize class nickname
121601058Institution does not exist
121601059No such student under the institution
121601060Student count exceeds limit of 100