ProctorU's EditTermExam Endpoint Now Supports Multiple Instructors!

16 views
Skip to first unread message

ProctorU API Update Newsletter

unread,
Dec 2, 2020, 11:51:42 AM12/2/20
to ProctorU API Update Newsletter

Hello API Update Subscribers,

ProctorU is happy to announce that the editTermExam endpoint now supports multiple instructors. To use this new ability you will first need to change the ‘instructor’ parameter to ‘instructors’. You will then format the value for the instructors parameter as follows: [{"first_name":"John", "last_name":"Doe", "email":"Joh...@email.com"}, {"first_name":"Jane", "last_name":"Doe", "email":"Jan...@email.com"}].We at ProctorU all hope this update will be useful for your integrations. Here is an example request and response utilizing the new instructors feature.



curl --location --request POST 'https://demo.proctoru.com/api/editTermExam' \
--header 'Authorization-Token: 2a0577d4-d255-4dd5-bd5b-f698593fsd334' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: __cfduid=db7ef68ace7d01b3f57rf5ef3c71f9b2d1605549809' \
--data-urlencode 'time_sent=2020-12-02T16:45:38.960Z' \
--data-urlencode 'term_id=224933' \
--data-urlencode 'term_name=Math Term 101' \
--data-urlencode 'exam_id=demo_exam' \
--data-urlencode 'description=Demo Exam' \
--data-urlencode 'exam_url=https://demo.proctoru.com/quiz' \
--data-urlencode 'password=982' \
--data-urlencode 'start_date=2020-08-29T00:00:00Z' \
--data-urlencode 'end_date=2021-08-29T00:00:00Z' \
--data-urlencode 'instructors=[{"first_name":"John", "last_name":"Doe", "email":"Joh...@email.com"}, {"first_name":"Jane", "last_name":"Doe", "email":"Jan...@email.com"}]' \
--data-urlencode 'duration=60' \
--data-urlencode 'active=Y'



{
    "time_sent": "2020-12-02T16:45:40Z",
    "response_code": 1,
    "message": "",
    "data": {
        "exam_no": 5064586,
        "exam_id": "demo_exam",
        "invite_url": "https://go.proctoru.com/invitations/open-invite?token=JNhfKlTEwMG9wZW4taW52aXRl"
    }
}

Reply all
Reply to author
Forward
0 new messages