Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

yotta / pictogram

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 60
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Restapivalidupdatestudent

Restapivalidupdatestudent

Last edited by Eladio Blanco López Jul 29, 2015
Page history

<< Student

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"
    }
}
  Clone repository
  • 20170328_isabellemonfort
  • 20170328_luisballesteros
  • 20170328_luisperez
  • Apiaction
  • Apiadminvalid
  • Apiattribute
  • Apidevicevalid
  • Apienrolment
  • Apiinstructionresource
  • Apiinstructionvalid
  • Apilearningunitresource
  • Apimetamethodvalid
  • Apimethod
  • Apimethodresource
  • Apimethodvalid
More Pages
×

New Wiki Page

Tip: You can specify the full path for the new file. We will automatically create any missing directories.