The File Template Object

{
  "id": 1, // assigned by codePost API
  "assignment": 4,
  "name": "loops.py",
  "extension": ".py",
  "code": "",
  "required": true,
}

Attribute

Type

Description

id

integer

Unique identifier for the object.

assignment

integer

The Assignment this File Template Test corresponds to.

extension

string

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

code

string

The code of the File Template. Used to de-emphasize template code in the Code Console.

path

string

The path to the File Template.

required

boolean

Whether a file with this name and path is required to be submitted by students.