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
Restapivalidupdatesupervisor

Restapivalidupdatesupervisor

Last edited by Eladio Blanco López Jun 23, 2015
Page history

<< Supervisor

Modificar supervisor

Necesario token.

Operación

PUT /sup

Petición

Se pasa un objeto JSON con el id del supervisor y los campos que se desee modificar:

  • name (string): Nombre del supervisor
  • surname (string): Apellidos del supervisor
  • gender (char): Género. F (female) o M (male)
  • pic (string): Ruta a imagen de perfil (opcional)
  • address(string): Dirección del supervisor (opcional)
  • country(string): Código de 2 caracteres del país (opcional)
  • email (string): Email del supervisor
  • phone (string): Teléfono del supervisor (opcional)
  • lang (string): Idioma preferido (Ejemplo: ES)
  • tts_engine (string): Motor Text To Speech (opcional)

Ejemplo de petición:

PUT /sup

{
  "id": 23,
  "phone": "+34 953 24 22 23"
}

Respuesta

Se devuelve un objeto con el supervisor modificado.

Ejemplo de respuesta:

{
    "licenses": [ ... ],
    "workingSessions": [ ... ],
    "ownPictos": [ ... ],
    "aclPictos": [ ... ],
    "stuSup": [ ... ],
    "actions": [ ... ],
    "office": { ... },
    "id": 23,
    "name": "Belén",
    "surname": "Pérez Vílchez",
    "gender": "F",
    "pic": "pictures/supervisor/belen.jpg",
    "address": null,
    "country": null,
    "email": "belen.perez@autismojaen.es",
    "phone": "+34 953 24 22 23",
    "lang": "es",
    "ttsEngine": "IVONA Text-to-Speech HQ"
}
  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.