Crear estudiante
Operación
POST /stu
Petición
Se pasa un objeto JSON con los campos para crear el estudiante:
-
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:
POST /stu
{
"name": "Juan",
"surname": "Pérez",
"birthdate": "2002-11-20",
"gender": "M",
"country": "Es",
"notes": "Prueba de notas del estudiante",
"lang": "es-es"
}
Respuesta
Se devuelve un objeto con el estudiante creado.
Ejemplo de respuesta:
{
"student": {
"name": "Juan",
"surname": "Pérez",
"birthdate": "2002-11-20T00:00:00.000Z",
"gender": "M",
"country": "Es",
"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"
},
"id": 83
}
}