PATCH /api/v1/cohorts/{id}

Path parameters

  • id string Required
application/json

Body Required

  • name string
  • departmentId string
  • currentSemesterId string
  • courseId string

Responses

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

      Response message

    • id string Required

      Item ID

    • departmentId string 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/cohorts/{id}
curl \
 --request PATCH 'http://localhost:3500/api/v1/cohorts/{id}' \
 --header "Content-Type: application/json" \
 --data '{"name":"string","departmentId":"string","currentSemesterId":"string","courseId":"string"}'
Request examples
{
  "name": "string",
  "departmentId": "string",
  "currentSemesterId": "string",
  "courseId": "string"
}
Response examples (200)
{
  "message": "string",
  "id": "string",
  "departmentId": "string"
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}