Edit Studio
create studio
Authorizations
AuthorizationstringRequired
Body
extstring · enumOptionalPossible values:
programming extension
namestringOptional
name of studio
versioninteger · enumOptionalPossible values:
studio version
contentstringOptional
html content of studio question
deadlinestringOptional
deadline of studio in format YYYY-MM-DD HH:ii:ss
performanceScoreintegerOptional
performance score of submitted studio
timerintegerOptional
timer to submit studio in minute
Responses
200
Response
application/json
post
/v1/metronom/ce/filePOST /v1/metronom/ce/file HTTP/1.1
Host: services.alkamedia.id
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 312
{
"correctCodeTemplate": [
{
"ext": "cs",
"code": "text"
}
],
"ext": "cs",
"name": "text",
"parameters": [
{
"name": "text",
"type": "number"
}
],
"template": [
{
"code": "text",
"ext": "cs"
}
],
"testCodeTemplate": [
{
"ext": "cs",
"code": "text"
}
],
"version": 2,
"content": "text",
"deadline": "text",
"performanceScore": 1,
"testCase": [
[
"text"
]
],
"timer": 1
}200
Response
{
"status": true,
"data": {
"version": 2,
"averageExecutionTime": 1,
"contentId": 1,
"correctCodeTemplate": [
{
"ext": "cs",
"code": "text"
}
],
"ext": "cs",
"name": "text",
"updated_at": "text",
"created_at": "text",
"parameters": [
{
"name": "text",
"type": "number"
}
],
"parentId": "text",
"template": [
{
"code": "text",
"ext": "cs"
}
],
"testCase": [
[
"text"
]
],
"content": "text",
"deadline": "text",
"id": "text",
"result": "text",
"testCodeTemplate": [
{
"code": "text",
"ext": "cs"
}
],
"userId": "text",
"analysis": "text",
"performanceScore": 1,
"score": 1,
"submit": 1,
"submitted_at": "text",
"timer": 1
},
"message": "success"
}Last updated