Create a File

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Behavior

Creates a File using the parameters provided in the request body.

Returns

Returns the newly created file if creation succeeded. This call will raise an error if any parameters are invalid or any required parameters are omitted.
















Body Params
string
required

The name of the file.

string
required

The contents of the file. Accepts unicode-encoded strings, and will render newlines.

string
required

The file extension. This field determines how the File's code will be syntax-highlighted.

int32
required

The ID of the file's parent Submission. Must represent a Submission which is a descendant of a Course in which you are a Course Admin.

Response

Language
Credentials
Query
LoadingLoading…
Response
Choose an example:
application/json