UpdateWidget

UpdateWidget sets the widget of the problem to a bundle uploaded beforehand through asset.AssetService.UploadBundle, replacing the widget the problem had. The url must be a bundle url, and the entrypoint page must exist in it.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
string
required
Body Params
widget
object

Widget is the interactive part of a WIDGET problem: a self-contained web page, uploaded as a bundle, which the participant solves the problem in. The page is shown in a sandboxed frame under the statement, and it talks to the page around it over the widget protocol: the host asks it for the answer to submit, and hands an answer back to it to show what a submission contained. The answer is a JSON document of the widget's own design; the platform stores and grades it without reading inside.

The bundle follows the problem's versions the way tests and statements do, so a submission made against an earlier version is shown in the widget it was made with.

Response

Language
Credentials
OAuth2
Missing 1 required scope
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json