API Documentation /

API Method: edit_teacher

Edit teacher details

Using Edit Teacher API method, you can modify any teacher’s name, email id, password, profile picture, contact details, enable/disable class scheduling permissions.

End point URL

http://class.api.wiziq.com?method=edit_teacher

Authentication

This method requires authentication.

Parameter Type Description Example
teacher_id Required Unique id of teacher which is returned by add_teacher method. 1482
name Required Name of the teacher Mike Lar
email Required Email of the teacher mike@example.com
password Required Set Password for teacher xxxxxx
image Optional The image path where teacher image is placed D:\Teachers list\mike.jpg
phone_number Optional Teacher’s work phone number +1 xxxxxxxxxx
mobile_number Optional Teacher’s mobile number +1 xxxxxxxxxx
time_zone Optional Teacher’s time zone America/Chicago
about_the_teacher Optional About the teacher Online Facilitator and Teacher, British Columbia, Canada
can_schedule_class Optional Default will be False False
is_active Optional Default will be True True

Response XML Example

<rsp status="ok" call_id="72fe7bbe8df0">
  <method>edit_teacher</method>
  <edit_teacher status="true">
    <teacher_id>1482</teacher_id>
    <teacher_email>mike@example.com</teacher_email>
  </edit_teacher>
</rsp>

Error Codes

1057 - Teacher Email ID is required.

1058 - Please pass valid name parameter not more than 50 characters.

1059 - Password with Spaces, with less than 6 characters length and more than 15 characters is not allowed.

1060 - Please pass valid mobile number with country code or leave blank. For example:+44 9999999999.

1061 - Please pass valid work phone with country code or leave blank. For example:+44 9999999999.

1062 - This option is not available in your account. For more information please contact support@wiziq.com.

1063 - Your account has reached maximum limit of teachers. To add more teachers please contact sales@wiziq.com.

1064 - Teacher Email ID already exists.

1065 - Invalid file format. Only jpg, jpeg, png, gif are allowed.

1066 - Please pass valid teacher id.

1067 - Please pass valid email ID.

1068 - Value to parameter can_schedule_class is not passed or invalid. Please pass either 0 or 1 or leave blank.

1069 - Value to parameter is_active is not passed or invalid. Please pass either 0 or 1 or leave blank.

For enquiries: Call us at +1-919-647-4727 -or- Contact us

© 2017 WizIQ Inc. All rights reserved.