Create exam
POST/exam
Creates an exam.
→ Sample Request
POST {{restApiHost}}/api/exam
Content-Type: application/json
Authorization: Basic {{appKey}}:{{appSecret}}
{
"title": "Exam Created via API {{$datetime iso8601}}",
"content": {
"sections": [
{
"items": [
{
"itemId": "5bdde07c-3d98-412c-8fb1-67161d7143d7"
},
{
"itemId": "70eb9c32-00e5-4bea-83ff-a7d99a09c374"
}
]
}
]
},
"tags": [
{
"key": "tag-1",
"type": "string",
"value": "tag-1-value1"
}
]
}
← Sample Response
{
"exam": {
"id": "81a79438-b605-4920-9e74-b3be0381697f",
"sk": "exam#v0",
"name": "Exam Created via API 2025-06-11T09:32:07.256Z",
"maturity": "OPERATIONAL",
"createdAt": "2025-06-11T09:32:07.656Z",
"updatedAt": "2025-06-11T09:32:07.656Z",
"schemaVersion": "2020-01-01",
"workspaceId": "my-workspace",
"bankId": "my-workspace/user-content",
"__typename": "Resource",
"idInc": 57,
"tags": [
{
"key": "tag-1",
"type": "string",
"value": "tag-1-value1"
}
],
"content": {
"forms": [
{
"sections": [
{
"questionIds": ["20bbbea9-8696-4f1b-a208-49b1073b7f80"]
}
]
}
]
},
"questionIds": ["20bbbea9-8696-4f1b-a208-49b1073b7f80"]
}
}
Request
Responses
- 200
- 401
OK
Unauthorized