Adds a question that lives outside CoderPad (in your ATS or question bank) to a pad as a new environment, with the starter code you send. The pad switches to that environment. Each call creates a new environment, even for the same question_id.
You can add questions to your own pads. Organization owners can add questions to any pad of their organization.
Starter code is contents for a single-file language, or file_contents for a project template (language set to a template slug such as multifile_python). file_contents is merged over the template's files: a file replaces the template file with the same path, and "delete": true drops a template file. Inline file_contents is bounded: at most 400 files and 4 MiB of text per call, and every file needs contents, a url, or "delete": true.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
204The question was added to the pad.