Create a Test Case

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

Behavior

Creates a test case using the parameters provided in the request body.

Returns

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
















Body Params
int32
required

ID of the Test Category to which this Test Case corresponds.

string
required

An enum describing the type of tests. *All tests created via the API must have type='external'.

string
required

A description of the Test Case used as a title.

int32
Defaults to 0

Key that defines how Test Cases are sorted within the codePost UI.

int32
Defaults to 0

Points added to a submission that fails this Test Case. Use a negative value to take off points.

int32
Defaults to 0

Points added to a submission that passes this Test Case.

string

Text (accepts Markdown) shown to students when exposed tests are run in the Student Console, and from the Code Console.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

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