EditTermExam Endpoint Update

6 views
Skip to first unread message

ProctorU API Update Newsletter

unread,
Nov 19, 2020, 10:22:17 AM11/19/20
to ProctorU API Update Newsletter

Hello API Update Subscribers,

ProctorU is happy to announce that it is now offering users the ability to set the department of an exam through the editTermExam endpoint. This update allows for the editing of an exam’s information such as the term, instructor, exam URL, date range, and now the department for the exam as well, all with the ease of one API request. Below you will find an example of a request to the editTermExam endpoint including this new parameter. 

Request:

curl --location --request POST 'https://demo.proctoru.com/api/editTermExam' \
--header 'Authorization-Token: f86c74f3-bddd-4634-a753-a89baed0c36b' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: __cfduid=db7ef68ace7d01b3f570f3ef3c71f9b2d1605549809' \
--data-urlencode 'time_sent=2020-11-19T15:12:57.153Z' \
--data-urlencode 'term_no=' \
--data-urlencode 'term_id=562' \
--data-urlencode 'term_name=Math Term 408' \
--data-urlencode 'exam_id=80' \
--data-urlencode 'exam_no=' \
--data-urlencode 'description=Math Exam 7' \
--data-urlencode 'exam_url=http://example.com/quiz' \
--data-urlencode 'password=774' \
--data-urlencode 'notes=<br />
Proctor Notes:<br />
None<br />
<br />
Allowed Web Sites:<br />
None Listed<br />
<br/>
Allowed Items:<br />
Pen<br />
<br />
Primary Emergency Contact: <br />
<br />
Primary Emergency Contact Phone: <br />
<br />
Exam Type: <br />
<br />
Faculty Info: John Doe demo...@demo.com<br />
' \
--data-urlencode 'start_date=2014-08-29T00:00:00Z' \
--data-urlencode 'end_date=2019-08-29T00:00:00Z' \
--data-urlencode 'instructor=Demo Instructor' \
--data-urlencode 'courseno=Math 101' \
--data-urlencode 'max_attempt=3' \
--data-urlencode 'duration=60' \
--data-urlencode 'active=Y' \
--data-urlencode 'department_id=740362704'

Response:

{
    "time_sent": "2020-11-19T15:13:00Z",
    "response_code": 1,
    "message": "",
    "data": {
        "exam_id": "80",
        "invite_url": "https://demo.proctoru.com/invitations/open-invite?token=MTA02DQ0NzAxM29wZW4taW52aXRl"
    }
}


Happy Testing!


Reply all
Reply to author
Forward
0 new messages