Create Studio

create studio

post
/v1/metronom/ce/file

create studio

Authorizations
AuthorizationstringRequired
Body
extstring · enumOptional

programming extension

Possible values:
namestringOptional

name of studio

versioninteger · enumOptional

studio version

Possible values:
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/file
POST /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