Update a File

Behavior

Updates the specified file by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Returns

Returns the updated file if the update succeeded. This call will raise an error if update parameters are invalid.
















Path Params
int32
required

ID of the File you want to update

Body Params
string

The name of the file. Can't share the same name as any other file that is part of a Submission.

string

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

string

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

int32

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
Request
Response
Choose an example:
application/json