Create a course

POST /courses
application/json

Body Required

Responses

  • Course created successfully

POST /courses
curl \
 -X POST https://api.wei.co.mz/courses \
 -H "Content-Type: application/json" \
 -d '{"name":"string","university":"string","identifier":"string","description":"string","locations":["string"],"regimens":[{"label":"string","seats":42}],"related_courses":["string"],"allowed_sections":["string"],"exam_subjects":[{"label":"string","percentage":42}]}'
Request example
{
  "name": "string",
  "university": "string",
  "identifier": "string",
  "description": "string",
  "locations": [
    "string"
  ],
  "regimens": [
    {
      "label": "string",
      "seats": 42
    }
  ],
  "related_courses": [
    "string"
  ],
  "allowed_sections": [
    "string"
  ],
  "exam_subjects": [
    {
      "label": "string",
      "percentage": 42
    }
  ]
}
Request examples
{
  "name": "string",
  "university": "string",
  "identifier": "string",
  "description": "string",
  "locations": [
    "string"
  ],
  "regimens": [
    {
      "label": "string",
      "seats": 42
    }
  ],
  "related_courses": [
    "string"
  ],
  "allowed_sections": [
    "string"
  ],
  "exam_subjects": [
    {
      "label": "string",
      "percentage": 42
    }
  ]
}