Create Test

Method creates a new empty test in StartExam.

Request Information

Scheme

POST https://api.startexam.com/v1/create-test

URI Parameters

None

Body Parameters

Json with the CreateTestQuery:

  • ProjectId - Project identifier which will be a test container. Projects list can be found in your account details page at app.startexam.com
  • Title - name of the test. Max length: 200 symbols
  • Type - type of the entity. Supported values: test , survey

Request Example

POST https://api.startexam.com/v1/create-test HTTP/1.1
Host: api.startexam.com
Accept: application/json; charset=utf-8
Authorization: SharedKey 99:f52JP7GQd0xqrBzMO1NWTNVGzLENymgdUXu/Ie++NX4=
Content-Type: application/json; charset=utf-8
Content-Length: 118
Date: Fri, 19 Apr 2024 23:56:20 GMT

{
  "projectId": "828f965c-e7f9-4e44-afe7-ad47df190543",
  "title": "My new Test (created by API)",
  "type": "test"
}

Date and Authorization headers are constructed in the standard way.

Response Information

HTTP status code

200 OK, 400 Bad Request, etc. according the response processing guide.

Content-Type

Json.

Content

Method returns identifier of the created test:

  • TestId - ID of the created test.

Response Example

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 54

{
  "testId": "4239e092-0e11-4993-9585-d465a29d496c"
}

Use TestId as a URL parameter to redirect user to the Test Settings page:
https://app.startexam.com/Test/Settings?testId=4239e092-0e11-4993-9585-d465a29d496c

Try Method