POST test/…

Duplicates a test definition.

A name for the new test definition must be provided. The new test definition is only accessible to the caller.

Resource URL

https://www.drillster.com/api/2.1.1/test/{test_id}

Parameters

Field Type Description
testId
required
String The ID of the test definition to duplicate.

Example value: 7OuHq7RcQOCsnGWR58TnBw
name
required
String The name of the new test definition. It is strongly recommended to use a name that is different from the original test definition, to be able to distinguish between the two.

Response

A 2.1.1 Test object, with details about the test.

Error responses

The following error situations are possible:

ID Response code Description
no_permission 401 (Unauthorized) You do not have permission to duplicate this test.
test_id_missing 400 (Bad request) No test ID was specified.
name_missing 400 (Bad request) No name was provided.
unknown_test 404 (Not found) The specified test is unknown.