Lab
Create new interactive coding lab
Creates a new interactive coding lab with API. You can use this endpoint instead of creating it from GUI in fermion dashboard
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 60 requests in a window of 1m.
POST
/
public
/
create-interactive-coding-lab
curl --request POST \
--url https://backend.codedamn.com/api/public/create-interactive-coding-lab \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '{
"data": [
{
"data": {
"labTitle": "<string>",
"labDescriptionAsMarkdown": "<string>",
"defaultGitRepositoryUrl": "<string>",
"defaultGitRepositoryBranchName": "<string>",
"evaluationScriptBashCommand": "<string>",
"evaluationScriptTestFileContent": "<string>",
"testCases": []
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"labId": "<string>"
}
}
}
]
Authorizations
Body
application/json
API Request Body
The body is of type object
.
Response
200 - application/json
API Response Body
The response is of type object[]
.
curl --request POST \
--url https://backend.codedamn.com/api/public/create-interactive-coding-lab \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '{
"data": [
{
"data": {
"labTitle": "<string>",
"labDescriptionAsMarkdown": "<string>",
"defaultGitRepositoryUrl": "<string>",
"defaultGitRepositoryBranchName": "<string>",
"evaluationScriptBashCommand": "<string>",
"evaluationScriptTestFileContent": "<string>",
"testCases": []
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"labId": "<string>"
}
}
}
]
Assistant
Responses are generated using AI and may contain mistakes.