Modificar estudiante
Necesario token.
Operación
PUT /stu/<student-ID>
Petición
Se pasa el ID de estudiante al final de la petición y un objeto JSON con los campos que se desee modificar:
-
name
(string): Nombre del estudiante -
surname
(string): Apellidos del estudiante -
gender
(char): Género. F (female) o M (male) -
pic
(string): Ruta a imagen de perfil (opcional) -
country
(string): Código de 2 caracteres del país (opcional) -
lang
(string): Idioma preferido (Ejemplo: es-es) -
birthdate
(date): Fecha de nacimiento -
idOff
(int): Id del gabinete
Ejemplo de petición:
PUT /stu/83
{
"name": "Juan"
}
Respuesta
Se devuelve un objeto con el estudiante modificado.
Ejemplo de respuesta:
{
"workingSessions": [],
"stuSup": [],
"enrolments": [],
"stuPicto": [],
"id": 83,
"name": "Juan",
"surname": "Pérez",
"birthdate": "2002-11-19T23:00:00.000Z",
"gender": "M",
"country": "Es",
"pic": "/app/img/default.jpg",
"notes": "Prueba de notas del estudiante",
"lang": "es-es",
"attributes": {
"categories": "on",
"input_feedback": {
"vibration": true,
"click": false,
"read": false,
"highlight": false
},
"input_selection": "click",
"pictogram_size": "normal",
"tts_engine": "IVONA Text-to-Speech HQ",
"tts_voice": "child",
"picto_select": "enlarge",
"legend": "no",
"animation": "yes",
"tts_options": { "phrase": false },
"picto_background": "#0000ff",
"phrase_background": "#ff0000",
"legendsize":"50"
}
}