EditTermExam Endpoint Will Support Whitelisting URLs!

22 views
Skip to first unread message

ProctorU API Update Newsletter

unread,
Dec 9, 2020, 4:43:56 PM12/9/20
to ProctorU API Update Newsletter

Hello API Update Subscribers,

ProctorU is happy to announce that on December 17th it will be offering users the ability to whitelist URLs for an exam through the editTermExam endpoint. This update not only gives institutions the ability to set what URLs a test-taker can go to during an exam, but the update also allows the institution to set what URL will open at the start of the exam all through one API request.To utilize this update you will need to include the parameter titled, ‘whitelist_urls’ in the request to editTermExam, along with the URLs formatted as follows: [{url: "https://go.proctoru.com", open_on_start: false}, {url: "https://www.google.com", open_on_start: true}]'. 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: c1a7gh97d-9b13-5555-a0a6-c51e802eaa14'
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'time_sent=2020-11-20T14:41:31-06:00'
--data-urlencode 'term_id=new_term_id'
--data-urlencode 'term_name=Term 364'
--data-urlencode 'exam_id=123456'
--data-urlencode 'description=Demo_Exam'
--data-urlencode 'password=904'
--data-urlencode 'start_date=2020-12-21T19:35:00Z'
--data-urlencode 'end_date=2020-12-31T00:00:00Z'
--data-urlencode 'instructors=Demo Instructor'
--data-urlencode 'courseno=48839'
--data-urlencode 'max_attempt=0'
--data-urlencode 'duration=30'
--data-urlencode 'active=Y'
--data-urlencode 'take_it_now=Y'
--data-urlencode 'department_id=654321'
--data-urlencode 'whitelist_urls=[{url: "https://demo.proctoru.com", open_on_start: false}, {url: "https://www.procki.com", open_on_start: true}]''''


Response:{

    "time_sent": "2020-11-20T14:41:31-06:00",

    "response_code": 1,

    "message": "",

    "data": {

        "exam_id": "123456",

        "invite_url": "https://demo.proctoru.com/invitations/open-invite?token=MTA02DQ0ghfAxM29wZW4taW52aXRl"

    }

}

Happy Testing!


Reply all
Reply to author
Forward
0 new messages