PATCH /api/v1/semesters/{id}

Path parameters

  • id string Required
application/json

Body Required

  • name string
  • shortCode string

    the short code representing the year and semester firstyear(1). first-semester(1)

    Default value is 1.1.

  • startDate string
  • endDate string
  • associatedDepartment string

    Id of the associated department

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • success boolean Required
  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
PATCH /api/v1/semesters/{id}
curl \
 --request PATCH 'http://localhost:3500/api/v1/semesters/{id}' \
 --header "Content-Type: application/json" \
 --data '{"name":"string","shortCode":"1.1","startDate":"string","endDate":"string","associatedDepartment":"string"}'
Request examples
{
  "name": "string",
  "shortCode": "1.1",
  "startDate": "string",
  "endDate": "string",
  "associatedDepartment": "string"
}
Response examples (200)
{
  "message": "string",
  "success": true
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}