Method creates a new empty test in StartExam.
POST https://api.startexam.com/v1/create-test
None
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
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: Thu, 21 Nov 2024 06:23:31 GMT
{
"projectId": "1e9f4093-879b-4f7f-bc20-a323abae737f",
"title": "My new Test (created by API)",
"type": "test"
}
Date and Authorization headers are constructed in the standard way.
200 OK, 400 Bad Request, etc. according the response processing guide.
Json.
Method returns identifier of the created test:
TestId
- ID of the created test.
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 54
{
"testId": "9749bf7b-5255-4499-b45d-246c4fcb1e6f"
}
Use TestId
as a URL parameter to redirect user to the Test Settings page:
https://app.startexam.com/Test/Settings?testId=9749bf7b-5255-4499-b45d-246c4fcb1e6f